fortran 的 "hello, world!"

36 views
Skip to first unread message

sjgau02

unread,
Oct 7, 2008, 3:46:15 AM10/7/08
to NTUST_F90
! VF1007.f90
!
! FUNCTIONS:
! VF1007 - Entry point of console application.
!
! Example of displaying 'Hello World' at execution time.
!

!
****************************************************************************
!
! PROGRAM: VF1007
!
! PURPOSE: Entry point for 'Hello World' sample console application.
!
!
****************************************************************************

program VF1007

implicit none
integer a, b, c
a= 5
b= 6
c= a*b

print *, 'Hello World, a*b= ', c
end program VF1007
Reply all
Reply to author
Forward
0 new messages