hello everoyne,
I am nu 2 this so pleaz b kind. I need 2 make a program which does the factorial. But i not no how to do this. It is urgent so if you could help me i would be greatfull. God bless.
i have this so far.
#include<iostream.h>
int main()
{
please enter your number to be made factorial.
enter number>>number;
if(number=1)
{
cout<<1;
}
if(number=2)
{
cout<<1*2;
}
if(number=3)
{
cout<<1*2*3;
}
if(number=4)
{
cout<<1*2*3*4;
}
}
<< moderator edit: added [code][/code] tags >>
I am soo confused pleaz help me. :cry: