answersLogoWhite

0

#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

15y ago

What else can I help you with?

Related Questions

What is the sum of the first 50 numbers?

The sum of the first 50 whole numbers is 1,225.


Sum of first 50 even numbers?

The sum of the first 50 even numbers is 2,550.


What is the sum of the first 50 odd numbers?

The sum of the first 50 odd numbers is 2,500.


What is the sum of 50 natural numbers?

The sum of the first 50 natural numbers is 1,251.


What is the sum of the first 50 consecutive odd numbers?

the sum of first 50 consecutive odd numbers is 9801


What is the sum of the first 50 counting numbers?

The sum of the first 50 counting numbers, excluding zero, is 1,251.


What is the Sum of the 1st 50 odd numbers?

The sum of the first 50 odd numbers is 2,500. This can be calculated using the formula for the sum of the first ( n ) odd numbers, which is ( n^2 ). For ( n = 50 ), the sum equals ( 50^2 = 2,500 ).


What is the sum of the first 50 natural numbers?

sum of n natural number is n(n+1)/2 first 50 number sum is 50(50+1)/2 = 1275


Write a programme in BASIC to find the sum of first fifty numbers entered through the keyboard?

10 for t = 1 to 50 20 input a 30 c = c + a 40 next t 50 print c


Find the sum of the first 50 even numbers what is the sum?

of all the things i got is 2550


How do you find the sum of the first 50 odd numbers quickly?

2500


What are the 9 odd numbers whose sum is 50 from 1 to 50?

To find the 9 odd numbers whose sum is 50 from 1 to 50, we can first calculate the sum of all odd numbers from 1 to 50, which is (50^2)/2 = 625. Next, we subtract the sum of the first 9 odd numbers (1+3+5+7+9+11+13+15+17 = 81) from the total sum, resulting in 625 - 81 = 544. Therefore, the 9 odd numbers whose sum is 50 from 1 to 50 are 19, 21, 23, 25, 27, 29, 31, 33, and 36.