next up previous
Next: Example Problem Up: CS101 Lecture 10 Previous: Code

Functions

Fotran has some intrinsic (or built-in) functions

Why do we need so many? Can we not do the following?

  ! for I = 2 * 3               !for I = m * n
  I = 2 + 2 + 2                 I = 0
                                Do J = 1, n
                                  I = I + m
                                End Do
Inconvenient?

What are user defined functions? Why do we need



G. Sivakumar 2000-08-23