#include<iostream>
using namespace std;
int main()
{
int x, i, t = 1;
cout << "Enter A Number : ";
cin >> x;
cout << endl;
for(i=1;i<=x;i++)
{
t = t * i;
}
cout << x << "! = " << t << endl;
return 0;
}
using namespace std;
int main()
{
int x, i, t = 1;
cout << "Enter A Number : ";
cin >> x;
cout << endl;
for(i=1;i<=x;i++)
{
t = t * i;
}
cout << x << "! = " << t << endl;
return 0;
}
Comments
Post a Comment