Fortran

🤨Fortran--if代码块

2019-03-25  本文已影响0人  YI_YI_

#######1: if...then...end if

program ifProg
    implicit none
    
    integer :: a = 10
    if(a < 20) then
        print *,"a is less than 20"
    end if
    read *
end program ifProg
    
    
结果
result_if_construct.png
上一篇 下一篇

猜你喜欢

热点阅读