美文网首页Fortran
🤨Fortran--if代码块

🤨Fortran--if代码块

作者: YI_YI_ | 来源:发表于2019-03-25 16:32 被阅读0次

    #######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

    相关文章

      网友评论

        本文标题:🤨Fortran--if代码块

        本文链接:https://www.haomeiwen.com/subject/porbvqtx.html