#include
int main()
{
int i,total=0;
for(i=1;i<=50;++i) total+=i;
printf("Total: %d\n",total);
return 0;
}
The sum of the first 50 whole numbers is 1,225.
The sum of the first 50 odd numbers is 2,500.
The sum of the first 50 even numbers is 2,550.
The sum of the first 50 natural numbers is 1,251.
the sum of first 50 consecutive odd numbers is 9801
The sum of the first 50 counting numbers, excluding zero, is 1,251.
sum of n natural number is n(n+1)/2 first 50 number sum is 50(50+1)/2 = 1275
10 for t = 1 to 50 20 input a 30 c = c + a 40 next t 50 print c
of all the things i got is 2550
2500
The sum of the composite numbers between 1 and 50 is 936.
Sum of 1st n even numbers: count*average = n * (2 + 2*n)/2 = n * (n+1) Sum = 50 * (2+100)/2 = 50*51 = 2550