write a program to find factorial of a number

Write a program to calculate the factorial of any number using do while loop

Write a program to calculate the factorial of any number using do while loop

Program to calculate the factorial using do while loop Object: Write a program to calculate the factorial of any number using do while loop. C++ projects for beginners with source code Code: #include<iostream> #include<conio.h> using namespace std; void main() { int i=1,no,fact=1; cout<<” Enter Any Number: “; cin>>no; do { fact=fact*i; i++; }while(i<=no); cout<<“\n Factorial …

Write a program to calculate the factorial of any number using do while loop Read More »

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 »