Your First Program
We'll assume that you know how to log-in to the computer that you will be using, and how to run the Fortran compiler. If you are a Haverford student, instructions for all of this are on the H205 manual page. Otherwise ask the instructor at your institution.
We'll start by writing a simple "hello world" program., shown below
program hello
implicit none
write (*,*) "hello world!"
stop
end program hello
Let's go line by line to see what this means:
program hello
implicit none
write (*,*) "hello world!"
stop
end program hello
That's it! Pretty easy, huh? Compile and run this to make sure it works. In the next section we'll learn how to do calculations.