fortran 的 "hello, world"
by 高顯忠, 2010-12-02 22:01, 人氣(2449)
| 隱藏詳細資料 21:10 (50 分鐘前) |
! VF0904.f90
!
! FUNCTIONS:
! VF0904 - Entry point of console application.
!
! Example of displaying 'Hello World' at execution time.
!
!****************************************************************************
!
! PROGRAM: VF0904
!
! PURPOSE: Entry point for 'Hello World' sample console application.
!
!****************************************************************************
program VF0904
implicit none
integer a, b, c
a= 40000
b= 60000
c= a*b
print *, 'Hello World, c= ', c
end program VF0904
! -----------------------------------------------------
!dec$if(.false.)
Hello World, c= -1894967296
Press any key to continue
!dec$endif
!
! FUNCTIONS:
! VF0904 - Entry point of console application.
!
! Example of displaying 'Hello World' at execution time.
!
!*****************************
!
! PROGRAM: VF0904
!
! PURPOSE: Entry point for 'Hello World' sample console application.
!
!*****************************
program VF0904
implicit none
integer a, b, c
a= 40000
b= 60000
c= a*b
print *, 'Hello World, c= ', c
end program VF0904
! ------------------------------
!dec$if(.false.)
Hello World, c= -1894967296
Press any key to continue
!dec$endif