#6a: Codding In C++ {FACTORIAL FINDER}
#include <iostream.h>
int main()
{
int a,b,c,d;
cout<<"Enter number: ";
cin>>c;
a=1;
b=2;
for(int i=1;i<c;i++)
{
d=a*b;
a=d;
b=b+1;
}
cout<<c<<" ! = "<<d;
return 0;
}
For PYTHON codes for same CLICK HERE.
Download CODES HERE
Comments