C Program to Find Factorial of a Number

Program to find Factorial of a Number using Recursion

The factorial of a positive number n is given by: factorial of n (n!) = 1 * 2 * 3 * 4….n The factorial of a negative number doesn’t exist. And, the factorial of 0 is 1. Factorial of a Number   #include <stdio.h>   int main() {   int n, i;   unsigned long … Read more

C Program to Find Factorial of a Number

factorial program example in c

C Program to Find Factorial of a Number The factorial of a positive number n is given by: factorial of n (n!) = 1*2*3*4….n The factorial of a negative number doesn’t exist. And, the factorial of 0 is 1, 0! = 1 #include <stdio.h> int main() { int n, i; unsigned long long factorial = 1; … Read more