Calculate the Factorial by Using Recursion

This C Program will help you to calculate the Factorial by Using Recursion Function of C Programming.
- C Program to Convert Decimal to Binary
- C Program to Calculate the Area and Circumference of a Circle
- C Program to Read Value and Display Surface Area.
Source Code
#include<stdio.h> #include<conio.h> void main() { int n; int factorial(int); printf("Enter a number:"); scanf("The factorial of %d is %d", n,factorial(n)); getch(); } int factorial(int n) { if(n<1) return(1); else return(n*factorial(n-1)); }