FIND FACTORIAL OF A NUMBER USING RECURSION IN C PROGRAM Naim 07:48 #include<stdio.h>int main(){ int num,f; printf("\nEnter a number: "); scanf("%d",&num); f=fact(num); printf("\nFactorial of %d is: %d",num,f); return 0;}int fact(int n){ if(n==1) return 1; else return(n*fact(n-1)); } Learn More : Share this Share on FacebookTweet on TwitterPlus on Google+
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.