#include<iostream>
using namespace std;
int main ()
{
int n,x,fact=1;
do{
cout<<"Enter number to find Factorial: "<<endl;
cin>>n;
for (int i=1;i<=n;i++)
{
fact=fact*i;
}
cout<<"Factorial of your numbers: "<<fact<<endl;
cout<<"Do you want to continue? \nIf 'Yes' then press 1 or If 'No' then press 0..."<<endl;
cin>>x;
fact=1;
}
while(x==1);
}