#include <iostream>
using namespace std;

long factorial( long n)
{  if( n == 0)
  return 1; else return ( n * factorial( n-1));
}

int main()
{ 
  int number;

  cout << "Please enter a value for factorial computation: ";
  cin >> number;
  cout << "Factorial of " << number << " is: " << factorial( number) << "\n";

  return 0;
}

