Enter the FORTRAN program circle.for from the listings below.
Start the comments and statement numbers in column 1. Start
the statement in column 9, after one tab.
Do not worry about minor typing errors, you
will have a chance to correct them later in this lab.
Please name your source code file circle.for.
*****************************
* your name *
*****************************
open(unit=21,file='circle.out',status='unknown')
open(unit=22,file='circle.dat',status='unknown')
write(unit=21,fmt=2500)
2500 format(1x,'Circles and Spheres')
write(unit=21,fmt=3000)
3000 format(1x,'If radius is',3x,'with density',2x,
1'circumference',9x,'volume',9x,'weight'/)
100 read(unit=22,fmt=1000)rad,dens
if(rad.eq.0) goto 9900
1000 format(f6.2,1x,f6.2)
circ=rad*2.0*3.1416
vol=(rad**3*3.1416*4)/3.0
wt=vol*dens
write(unit=21,fmt=2000)rad,dens,circ,vol,wt
2000 format(1x,6(f12.2,3x))
goto 100
9900 write(unit=21,fmt=4000)
4000 format(/,1x,'End Of Data')
stop
end