Computer Science, asked by AbdulHafeezAhmed, 5 months ago

❌No spam or rubbish answers❌: Write a function in c++ which gives the factorial of a number

Answers

Answered by saabir24
1

Answer:

1.#include <iostream>

2.using namespace std;

3.int main()

4.{

5.int i,fact=1,number;

6.cout<<"Enter any Number: ";

7.cin>>number;

8.for(i=1;i<=number;i++){

Explanation:

i hope it helps you...

Answered by amarjyotijyoti87
0

Explanation:

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