#include <iostream.h>
#include <conio.h>
using namespace std;
int main()
{
	int n=0, fact=1;
	 cout<<"Enter a number:";
	 cin>>n;

	 for(int i=n; i>=1; i--)
     fact*=i;
	 cout<<"Factorial for the number is: "<<fact<<endl;
     getchar();


	system("pause");
	return 0;
}