Group: comp.lang.fortran · Group Profile · Search for 10000001 in comp.lang.fortran
Author: Dave Seaman
Date: Mar 10, 2008 10:51
On Fri, 7 Mar 2008 19:05:33 -0800 (PST), Bamm wrote: ! --------------- program bit_string integer(1) :: abyte = 127 ! bits = 01111111 write (*,'(b8.8)') -abyte ! bits = 10000001 end program Very elegant! I had to move each line to the 7th column to get it to compile in g77. Furthermore, I'd like the user to input a value which the program will compute ...
|