Hello, World

by (Login dean.menezes)
R

 

PROGRAM HELLO
WRITE (*, *) "HELLO, WORLD!"
END PROGRAM

Notes:

This is the hello world program. Single quotes may be used instead of double quotes.

Compile with:

gfortran hello.f90 -o hello

If you want to use fixed form format then you have to put six spaces before each line so it starts in the right column.

Posted on Jul 1, 2008, 5:35 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
* FORTRAN is awesome.kidfrommars on Apr 11

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement