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
2
Answer:
Can you show me the whole code??
Explanation:
I need to see
It is importatnt
Similar questions
English,
5 months ago
Computer Science,
5 months ago
English,
10 months ago
English,
10 months ago
Physics,
1 year ago