Program Structure:
program program_name
! Declarations
implicit none
! Statements
...
end program program_name
A quick reference guide to Fortran programming, covering syntax, data types, control structures, and more. Useful for both beginners and experienced Fortran developers.
|
Program Structure:
|
|
Comments:
|
|
Continuation:
|
|
Case Insensitivity: |
|
|
Whole numbers (e.g., |
|
|
Floating-point numbers (e.g., |
|
|
Floating-point numbers with higher precision (e.g., |
|
|
Numbers with real and imaginary parts (e.g., |
|
|
Boolean values: |
|
|
Strings of characters (e.g., |
|
|
Implicit None: |
|
|
Addition |
|
|
Subtraction |
|
|
Multiplication |
|
|
Division |
|
|
Exponentiation |
|
|
Equal to |
|
|
Not equal to |
|
|
Greater than |
|
|
Greater than or equal to |
|
|
Less than |
|
|
Less than or equal to |
|
IF Statement:
|
|
DO Loop:
|
|
SELECT CASE Statement:
|
|
Declaration:
|
|
Array Slicing:
|
|
Array Operations: |
|
Reading from standard input:
|
|
Writing to standard output:
|
|
Formatted I/O:
|
|
File I/O:
|
|
Definition:
|
|
Calling a Subroutine:
|
|
Definition:
|
|
Calling a Function:
|
|
Definition:
|
|
Using a Module:
|