//----------------------------------------------------------------------------
//----A program that computes Factorials
//----------------------------------------------------------------------------
#include <iostream.h>
#include <stdlib.h>

long Factorial(long Number);
//----------------------------------------------------------------------------
int main(int argc, char *argv[]) {

long Number;

//----Get which number off the command line
Number = atol(argv[1]);

//----Output
cout << "Recursively computing the factorial of " << Number << endl;
cout << "The factorial of " << Number << " is " << Factorial(Number) 
     << endl;

//----End program
return(0);
}
//----------------------------------------------------------------------------
//----Function to compute the Nth Fibonacci number recursively
long Factorial(long Number) {

//----If the 1st or second number, return the answer directly
if (Number == 1)
    return(1);
else return(Number * Factorial(Number - 1));
}
//----------------------------------------------------------------------------
