Before doing this lesson, you should read sections 3.1-3.4 of the text.
In this lesson we'll look at basic arithmetic computations in Fortran. There's no big trick to it. You simply write down the expression that you want evaluated, much as you would write down an expression in algebra. We'll look at two of the subtle aspects of arithmetic computation: operator precedence and the difference between INTEGER and REAL expressions.
Before we begin, click below to copy some demonstration files to your ``examples'' directory.
Hamlet Project