write c++program to caculate the factorial of an integer
Answers
Answered by
4
Explanation:
Let's see the factorial Program in C++ using loop.
#include <iostream>
using namespace std;
int main()
{
int i,fact=1,number;
cout<<"Enter any Number: ";
cin>>number;
for(i=1;i<=number;i++){
Answered by
0
Answer:
C++ Program
#include<iostream>
using namespace std;
int main() {
int num,factorial=1;
cout<<" Enter Number To Find Its Factorial: ";
cin>>num;
for (int a=1;a<=num;a++) {
factorial=factorial*a;
Similar questions