C Program to find Factorial of the number using For -Loop|E-studyblog|
C Program to find Factorial of the number using For -Loop|E-studyblog|
Factorial of the number
#include <stdio.h>
int main()
{
int n,i,f=1;
printf("\nEnter the value of n:");
scanf("%d",&n);
for(i=1;i<=n;i++)
f=f*i;
printf("\nFactorial =%d",f);
}
Output:
I hope you have read our Article and you have collected lots of information from there.If you like the post,then please comment and share among your friends and family. you can write your opinion about my post in the comment box.
Thank you!
No comments:
Post a Comment
If you have any queries ,please let us know