HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to FortranVariablesOperatorsConditions (if)Loops (do)ArraysFunctions
REFERENCE
📖 Overview
🖥️ Output
📦 Variables
🔢 Numbers & Math
🔁 Condition & Loop
📋 Array
🧩 Functions & Subroutines
Fortran›REFERENCE

Fortran — Command Reference

Most used commands in Fortran — the first and still powerful language of scientific computing. Each example is a complete program (program ... end program). Note: print * adds a space at the beginning of the output.

6 categories · 12 commands

🖥️

Output

Printing with print and write.

print *write(*, format)
2 commands →
📦

Variables

Typed variables and constants.

Variable (integer / real)parameter (constant)
2 commands →
🔢

Numbers & Math

Arithmetic and built-in functions.

Arithmetic ( + - * / ** )mod()sqrt / abs
3 commands →
🔁

Condition & Loop

Decision making and repetition.

if / then / elsedo (loop)
2 commands →
📋

Array

Arrays (1-indexed) and whole-array operations.

Array
1 commands →
🧩

Functions & Subroutines

function and subroutine.

functionsubroutine
2 commands →
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code