hello.f95
program hello
! this programs prints "hello world!" to the screen
implicit none
print*, "Hello world!!"
end program hello
이러면 Hello World!! 가 콘솔에 출력된다.
AplusB.f95
program hello
A=1
B=2
write(*,*) "A + B = ",A+B
end program hello
A와B를 더한 값을 출력 해 준다.