PHYSICS 580                                                                                                 Spring 2005


Fortran Example #2                                                                  due 9 a.m. Fri Feb 4, 2005



Write a short program that asks for an integer N and then computes the factorial of N, N! = 1 x 2 x 3 x 4 ... x N-1 x N.  Use a do-loop.




To make identification easier for me please use the convention lastname_ex2.f for your program. Also, your program should print out the following at the beginning:


This is fortran example 2.

Written by your name here.


to submit:  first compress your file (this will help save formatting)

gzip lastname_ex2.f

this will produce a file lastname_ex2.f.gz

attach this to an e-mail to: