Before you begin this lesson, you should read sections 9.1--9.4 of the text.
In the next few lessons, we will look more closely at input and output. We have already looked at the hard part of Fortran programming, which involves using loops, if statements, arrays, functions, subroutines and the like to compute results. Input and output are relatively easy, but nicely formatting your results can make your programs much more impressive. Even though I/O is quite simple, there are a number of details that you must be aware of. But don't view this as a memorization chore---you can always use the textbook for reference if you forget some of the details.
You need to copy some files before we begin.
Hamlet Project