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 5

								        program demo5
c       This program demonstrates Fortran exponential notation.
c       Notice how Fortran prints x, y, and z.
        real x, y, z
        x = 2.34375E0
        y = 2.34375E3
        z = 2.34375E-2
        print *, "2.34375E0 = ", x
        print *, "2.34375E3 = ", y
        print *, "2.34375E-2 = ", z
        end