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 performs exactly the same function,

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

Go back to Notes gif




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

©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997
Not for commercial use.