포트란 예제

Seo-Faper·2021년 6월 14일
0

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를 더한 값을 출력 해 준다.

profile
gotta go fast

0개의 댓글