Factorial of Number using Recursive function in C language

Factorial of Number using Recursion

int GetFactorial(int number);
 int number,factorial;
 printf(“Enter a number for factorialn”);

int GetFactorial(int number)
 return number*GetFactorial(number-1);

 return 1;




 Enter a number for factorial
4!= 24

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!