Calculate the Factorial Of Any Number
Object: Write a program to calculate the factorial of any number. C++ Projects.
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(); }
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.
Excellent way of explaining, and fastidious post to take facts aboujt my presentation subject, which i am going to deliver in university.
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. Ƭhe problem 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.
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.