Computer Science, asked by divyashreer1999, 10 months ago

The following code finds out the factorial of a number. There is some error in it. Can you fix the bug?

#include
int main ()
{
long number;
std::cin>>number;
std::cout<< factorial (number);
return 0;
}
long factorial (long a);
{
for(int i=1;i<=a;i++)
fact=fact*i;
}

Answers

Answered by akshatksingh2006
2

Answer:

Can you show me the whole code??

Explanation:

I need to see

It is importatnt

Similar questions