Welcome.please sign up.
By signing up or logging in, you agree to our Terms of serviceand confirm that you have read our Privacy Policy.
Already a member? Go to Log In
Welcome.please login.
Forgot your password
Not registered yet? Go to Sign Up
Write c++ program to find factorial of a number?
include <iostream>
using namespace std;
int main()
{
int num;
cin » num;
int fact=1;
while(num>0)
fact*=num;
num--;
}
cout « fact « endl;
return 0;