Department of Engineering

IT Services

Some examples of Fortran 90

  • triangle.f90 is a trivial program to find the area of a triangle, but demonstrates free-form input, user-defined types and declaration of intent for function arguments. (triangle.f90 is based on an example given as part of Liverpool University's course
  • mergsort.f90 performs a merge sort of an integer array. It demonstrates modules and some aspects of array handling and flexibility. (mergsort.f90 is based on an example provided in the public domain by N.A. Software Ltd.)