Program to find factorial of Number in C++

#include <iostream>
using namespace std;
main()
{
    int num , factorial=1;
    cout<<"Enter The Number To Find Factoril ";
    cin>>num;
    for (int a=1; a<=num; a++)
    {
        factorial=factorial*a;
       

       
       
    }
   
    cout<<" The Factorial of "<<num<<factorial<<endl;
Previous
Next Post »
Thanks for your comment