answersLogoWhite

0

Programme in c to sum of first 50 numbers?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

#include
int main()
{
int i,total=0;
for(i=1;i<=50;++i) total+=i;
printf("Total: %d\n",total);
return 0;
}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Programme in c to sum of first 50 numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp