ex0804.f90
来自「Fortran95的一些有用的源程序」· F90 代码 · 共 16 行
F90
16 行
program ex0804
implicit none
integer :: a = 1
integer :: b = 2
call add(a,b) ! 把变量a及b交给子程序add来处理
stop
end
subroutine add(first, second)
implicit none
integer :: first, second ! first,second的内容会从CALL时得到
write(*,*) first+second
return
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?