Write a program to calculate the factorial of any number

Write a program to calculate the factorial of any number

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 …

Write a program to calculate the factorial of any number Read More »