Fortran Programming Tutorial

 

This is a brief set of exercises that will introduce you to Fortran programming. The basics of Fortran are easy to learn and you can write useful programs after learning only a little about the language. These exercises mostly focus on Fortran 77, an older version of the language that still is often used.

Compiling and executing Fortran programs

Lesson 1: The simplest Fortran program

Lesson 2: The "Hello World" program

Lesson 3: Arithmetic in Fortran: Real and Integer variables

Lesson 4: Arithmetic in Fortran: Using arithmetic operators

Lesson 5: Arithmetic in Fortran: Higher operators

Lesson 6: Repetitive instructions and DO loops

Lesson 7: Improving the readability of your programs

Lesson 8: Conditional execution: IF-THEN-ELSE