Computer Science, asked by shhhhhtsha, 3 days ago

write a function in c++ to compute factorial of a number by using formula?​

Answers

Answered by avinash4706
2

Answer:

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

Explanation:

mark me Brainliest

Similar questions