#include <iostream>
using namespace std;
int main()
{
int i,fact=1,number;
cout<<"Enter any positive Number: ";
cin>>number;
for(i=1;i<=number;i++)
{
fact=fact*i; //for 5! = 5*4*3*2*1
}
cout<<"Factorial of entered number" <<number<<" is: "<<fact<<endl;
return 0;
}
Output::