Hello World

Programming

The classic "Hello, World!" program is the simplest Fortran program. It demonstrates basic program structure and output.

Program Structure

A Fortran program begins with program program_name and ends with end program program_name. The print * statement outputs text to the console.

Implementation

program hello_world
    print *, "Hello, World!"
end program hello_world

Compilation and Execution

To compile and run this program:

gfortran hello_world.f90 -o hello_world
./hello_world

Output:

Hello, World!