next up previous
Next: Declaration Format 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
Next: Declaration Format Up: Introduction to Fortran 90 Previous: Introduction to Fortran 90

Adam Marshall ©University of Liverpool, 1996
Wed Oct 9 17:39:48 BST 1996