PROGRAM HELLO DOUBLE PRECISION F, G * apparently, functions (that return something) have to be declared like so DOUBLE PRECISION afunc * The PRINT statement is like WRITE, * but prints to the standard output unit G = 1 F = afunc( G ) write (*,*) 'Hello, world', F STOP END