欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

fortran程序的首尾格式

程序员文章站 2022-03-09 09:36:03
...
[b] Fortran originally was designed to allow programmers to evaluate formu-
las—FORmula TRANslation—easily on large computers.
[/b]
program calculation_1_v2
print *, "84 + 13 =", 84 + 13
end program calculation_1_v2


[b]The program Statement[/b]
Each Fortran program begins with a program statement and ends with an end program
statement. The program statement consists of the keyword program followed by a pro-
gram name of the programmerʹs choice. A name must start with a letter and consist of
at most 63 letters, digits, and underscores; the letters may be uppercase or lowercase.
Other names in Fortran also follow this rule.
[b]The end program Statement[/b]
The end program statement begins with the keywords end program. It must be fol-
lowed by the name of the program. Every Fortran program must have an end program
statement as its last statement.
相关标签: Fortran