write a program to find the factorial number in c
Answers
Answered by
1
Answer:
#include <stdio.h>
long long factorial(int n)
{
if (n == 0)
{
return 1;
}
return n * factorial(n - 1);
}
int main(void)
{
printf("%lli\n", factorial(10));
}
Similar questions