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.

#DescriptionLink
1Hello, name — program unit, implicit none, trimmed outputView
2Intrinsic types and the KIND parameterView
3Operator precedence and the integer-division trapsView
4Declaration syntax and named constantsView