Computer Science, asked by rkdeepshika, 6 months ago

write c++ program to calculate the factorial of an integer​

Answers

Answered by BornCxnfused
12

Factorial Program 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 VioletMoon
0

Factorial Program 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++){

Similar questions