Fortran Lab Examples
Twenty-two runnable single-file programs that follow the track's lesson order, grouped by category. Every file is self-contained and fully commented. Run them locally with the compiler listed on the page, or open them in the code viewer — then change one thing and run again. That second run is where the learning happens.
Foundations
Hello world, the five intrinsic types with KIND, operator precedence, and the declaration discipline. These four files introduce every value and habit the later demos rely on.
| # | Description | Link |
|---|---|---|
| 1 | Hello, name — program unit, implicit none, trimmed output | View |
| 2 | Intrinsic types and the KIND parameter | View |
| 3 | Operator precedence and the integer-division traps | View |
| 4 | Declaration syntax and named constants | View |