next up previous contents
Next: Solution Up: Introduction to Fortran 90 Previous: Introduction to Fortran 90

 

Reformatting Code

The following program (which is available by clicking here) has been badly laid out, Reformat it so its is neat and readable but perfoms exactly the same function,

      PROGRAM MAIN;INTEGER::degreesfahrenheit&
        ,degreescentigrade;READ*,&
        degreesfahrenheit;degreescentigrade&
        =5*(degreesfahrenheit-32)/9;PRINT*,&
        degreesCENtiGrAde;END




next up previous contents
Next: Solution Up: Introduction to Fortran 90 Previous: Introduction to Fortran 90

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996