#include<stdio.h>
ifinclude<conio.h>
#include<math.h>
long int factorial(int n);
void main()
}
. cIrscr()
; int n;
long int factorial(int n);
printf("Enter the value of n:");
scanf("%d",&n); printf("Factorial of %d is=%d",n,factorial(n));
getch();
}
long int factorial(int n)
(if(n<=1)
return(1);
else
return(n*factorial(n-1));
}
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
This post has received a 0.26 % upvote from @drotto thanks to: @masudrana3363.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Your Post Has Been Featured on @Resteemable!
Feature any Steemit post using resteemit.com!
How It Works:
1. Take Any Steemit URL
2. Erase
https://
3. Type
re
Get Featured Instantly & Featured Posts are voted every 2.4hrs
Join the Curation Team Here | Vote Resteemable for Witness
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
To get upvote from @artzone, the post needs at least 300 characters! Please describe your work in detail ;-)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit