write a function in c++ to compute factorial of a number by using formula?
Answers
Answered by
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