# Calculate the Factorial Of Any Number

## Code:

#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
int i,no,fact=1;
cout<<” Enter Any Number: “;
cin>>no;
for(i=no;i>=1;i–)
{
fact=fact*i;
}
cout<<“\n Factorial of given Number is: “<<fact;
getch();
}

```#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
int i,no,fact=1;
cout<<" Enter Any Number: ";
cin>>no;
for(i=no;i>=1;i--)
{
fact=fact*i;
}
cout<<"\n Factorial of given Number is: "<<fact;
getch();
}
```

## Output:

### 4 thoughts on “Write a program to calculate the factorial of any number”

1. Hi, it’s me, I am also visiting this web page on a regular basis,
this web page is truly pleasant and the people are really sharing good thoughts.

2. Excellent way of explaining, and fastidious post to take facts aboujt my presentation subject, which i am going to deliver in university.

3. I am very happy

I’m amazed, I must saү. Ꭱarely do I c᧐me acrosѕ a
blog tһаt’s equally educative ɑnd amusing, ɑnd let me tell you, you have
hit the nail on the head. Ƭhｅ pｒoblem is
an issue tһаt not enouɡh mеn and women aгe speaking intelligently about.
I am very happy tһat I fօund this during my
search fօr ѕomething relating t᧐ thіs.

4. Your style is so unique in comparison to other folks I’ve read stuff from.
Thank you for posting when you’ve got the opportunity, Guess
I’ll just bookmark this blog.