Due date: Thursday, March 18, 2004.
Ex. 1. a. Write a program that inputs an integer number and computes the factorial of this number using a for loop. Declare the factorial first as an integer, then as a long, and test the upper limit for the number n for which the factorial is computer correctly.
b. Convert the part of the code computing the factorial into a function and call this function in the main to compute the factorial. The function should take one parameter which is the number n and should return a long value representing the factorial. Declare the function before the main.
Send me: Source code file containing two examples of program execution, one for which the factorial has been computed correctly, and one for which the factorial has not been computed correctly because the result was too large.