C Program Tutorial Class-14
Dear friends, today I bring you another C program. I hope you like it. I've run it online and shown you the results with my comments. I hope you understand how to run it. I've also included the C program's code below this text; you can copy it from here and run it online. If you find anything, please let me know. Thank you all very much.
#include<stdio.h>
int main()
{
int i, n, sum;
printf("Enter numbers: ");
scanf("%d", &n);
sum=1;
for(i=1; i<=n; i++)
sum = sum*i;
printf("Result is: %d", sum);
return 0;
}
Posted with Speem

Your post have been rewarded by the Speak on Steem curator team!
Now become a plus member delegating at least 500 SP
Ways to support us:
Curated by @nevlu123