#include<bits/stdc++.h>
using namespace std;
class Factorial
{
int n,p=1,i;
public:
Factorial()
{
cout<<"Enter a number: ";
cin>>n;
for(i=2;i<=n;i++)
p*=i;
}
void display()
{
cout<<"\nFactorial is: "<<p;
}
};
int main()
{
Factorial obj;
obj.display();
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIEZhY3RvcmlhbAp7CiAgICBpbnQgbixwPTEsaTsKICAgIHB1YmxpYzoKICAgIEZhY3RvcmlhbCgpCiAgICB7CiAgICAgICAgY291dDw8IkVudGVyIGEgbnVtYmVyOiAiOwogICAgICAgIGNpbj4+bjsKICAgICAgICBmb3IoaT0yO2k8PW47aSsrKQogICAgICAgICAgICBwKj1pOwoKICAgIH0KICAgIHZvaWQgZGlzcGxheSgpCiAgICB7CiAgICAgICAgY291dDw8IlxuRmFjdG9yaWFsIGlzOiAiPDxwOwogICAgfQp9OwoKCmludCBtYWluKCkKewogICAgRmFjdG9yaWFsIG9iajsKICAgIG9iai5kaXNwbGF5KCk7CgogICAgcmV0dXJuIDA7Cn0=