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]
[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.
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常见错误汇总
下一篇: 利用fortran语言实现区间的线性变换
推荐阅读
-
Bluestacks安装apk文件的方法(绑定关联apk格式的程序)
-
微信小程序实现pdf、word等格式文件上传的方法
-
解决微信小程序中转换时间格式IOS不兼容的问题
-
详解Linux中将应用程序打包为Snap软件包格式的方法
-
C#程序中使用LINQ to XML来查询XML格式数据的实例
-
不用GD库生成当前时间的PNG格式图象的程序
-
未能加载文件或程序集“**********”或它的某一个依赖项。试图加载格式不正确的程序。
-
未能加载文件或程序集“Oracle.DataAccess”或它的某一个依赖项.试图加载格式不正确的程序
-
U盘装win7在格式化分区时提示安装程序无法创建新的系统分区
-
解析C#编程的通用结构和程序书写格式规范