Fortran: Lesson 3

Lesson topics


View Demos
# 1 # 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9
Download Demos
# 1 # 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9

Demo 1

								        program demo1
c       This program demonstrates integer arithmetic.
        print *, "3/4 = ", 3/4
        print *, "3./4. = ", 3./4.
        print *, "7/3 = ", 7/3
        print *, "7./3. = ", 7./3.
        print *, "9 ** (1/2) = ", 9 ** (1/2)
        print *, "9 ** (1./2.) = ", 9 ** (1./2.)
        end