c++ program to find the factorial
#include<iostream>
using namespace std;
int main()
{
int number ,fact=1;
cout<<"enter the number : "<<endl;
cin>>number;
for(int i=number ; i>=1;i--)
{
fact*=i;
}
cout<<"the factorial of : "<<number<<" is : "<<fact<<endl;
}