// Program to compute the factorial of a positive integer.
// It is assumed that N is positive ( N >= 0 )
#include
using namespace std;
int main () {
unsigned int i, n;
unsigned long factorial=1;
cout << "Input N: ";
cin >> n;
for (i=2; i<=n; i++) factorial *= i;
cout << n << " N! = " << factorial << endl;
}