C Program Tutorial Class-14

in Steem Sri Lankayesterday

Image cover

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;
}

IPFS Video

Posted with Speem

Sort:  

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:

Image

Curated by @nevlu123

Coin Marketplace

STEEM 0.06
TRX 0.29
JST 0.053
BTC 70666.28
ETH 2076.61
USDT 1.00
SBD 0.48