ex0712.f90
来自「Fortran95的一些有用的源程序」· F90 代码 · 共 21 行
F90
21 行
program ex0712
implicit none
integer :: i
real :: income(10)=(/ 25000, 30000, 50000, 40000, 35000, &
60000, 27000, 45000, 28000, 70000 /)
real :: tex(10)=0
where( income < 30000.0 )
tex = income*0.10
elsewhere( income < 50000.0 )
tex = income*0.12
elsewhere
tex = income*0.15
end where
write(*,"(10(F8.1,1X))") tex
stop
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?