Enter your program and save with your own choice of filename, eg. myfile.f90
Here is a sample program using Fortran77: jdwjunk.for
Here is a sample program using Fortran90: example.f90
If you use Notepad or Wordpad, save as ascii - unfortunately both these editors insist on adding a .txt extension, therefore after saving go into your file manager and chop off the extra extension, eg. myfile.f90.txt -> myfile.f90
You are ready to compile and execute
At the command prompt N:\eas471\> enter
g95 -o myfile.exe myfile.f90
This compiles and builds the executable file, that you have chosen to name myfile.exe
Execute your program, eg.
N:\eas471\>myfile
Probably it won't do what you want! Go back in the editor and edit your file and recompile...