Skip to main content

4.17) Exercise 3


Step 1. Use emacs or vi (or any editor) to make a new file called exer2.dat and put a number 25.435 in the file and save it.

Step 2. Write a fortran 95 program to read in this value and evaluate if it is greater than 20.000 and if it is then open a new data file called outexer2.dat and output the statement The number in exer2.dat is greater than 20.000.