C++ Program to Find Factorial of Number

Code:

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int i, no, fact=1;
cout<<"Enter the any no. : ";
cin>>no;
for(i=1;i<=no;i++)
{
fact=fact*i;
}
cout<<"Factorial: "<<fact;
getch();
}

--------------------------------------------------------------------------------------------------------------------
Share To:

Adeel Rasheed

Full Stack Website Developer

Post A Comment:

1 comments so far,Add yours

  1. Very interesting , good job and thanks for sharing such a good blog.EFT Dongle Crack"

    ReplyDelete