summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--zh-cn/fortran95-cn.html.markdown10
1 files changed, 5 insertions, 5 deletions
diff --git a/zh-cn/fortran95-cn.html.markdown b/zh-cn/fortran95-cn.html.markdown
index bd77906c..39e7092d 100644
--- a/zh-cn/fortran95-cn.html.markdown
+++ b/zh-cn/fortran95-cn.html.markdown
@@ -204,9 +204,9 @@ program example !声明一个叫做 example 的程序
print *, b !向命令行打印变量 'b'
! 我们可以格式化输出
- print "(I6)", 320 !显示 ' 320'
- print "(I6.4)", 3 !显示 ' 0003'
- print "(F6.3)", 4.32 !显示 ' 4.320'
+ print "(I6)", 320 !打印 ' 320'
+ print "(I6.4)", 3 !打印 ' 0003'
+ print "(F6.3)", 4.32 !打印 ' 4.320'
! 该字母与数值规定了给定的数值与字符所用于打印输出的类型与格式
@@ -216,8 +216,8 @@ program example !声明一个叫做 example 的程序
! 可以同时设定多种格式
print "(I5,F6.2,E6.2)", 120, 43.41, 43.41
- print "(3I5)", 10, 20, 30 !3 repeats of integers (field width = 5).
- print "(2(I5,F6.2))", 120, 43.42, 340, 65.3 !repeated grouping of formats.
+ print "(3I5)", 10, 20, 30 !连续打印3个整数 (字段宽度 = 5).
+ print "(2(I5,F6.2))", 120, 43.42, 340, 65.3 !连续分组格式
! 我们也可以从终端读取输入
read *, v