Calculus Computer Lab
Math 190


News

Lab Schedule

QuickBasic Notes

Fortran Notes

Tutor Room

Winplot Manual

Lab Home

xxxxxxxxxxxxxxxxxx

c       Here we demonstrate the multi-line "if - then" construction.
c       The "if" statement ends with "then".
        program root
        real x, y
        print *, "What is your number ?"
        read *, x
        if (x .ge. 0) then
                y = sqrt(x)
                print *, "The square root of your number is : ", y
        end if
        print *, "Bye"
        end