Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #107.70K
~411 People Reached
Favorite Forums
Favorite Tags
c++ x 1
c x 1

1 Posted Topic

Member Avatar for indianscorpion2

/****************C Program for factorial by using recursion**************/ #include<stdio.h> int fact(int a); int facto(int s) //this function will calculate by recursive { if((s==0)||(s==1)) return 1; else return(s*facto(s-1)); } main() { int n,result,result1; printf("Pls enter ur num\n"); scanf("%d",&n); result=facto(n); result1=fact(n); printf("facto of ur num= %d\n fact of ur num =%d\n",result,result1); } /***************************function …

Member Avatar for sanjeevtanwar
-1
411

The End.