Computer Science, asked by kaliaanshul123, 15 days ago

write a program to find the factorial number in c​

Answers

Answered by yatharthgupta77777
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