In C: #include <stdio.h> int main(void) { int i, sum=0; for (i=10; i<=40; i+=2) { sum += i; } printf("%d\n", sum); return 0; }
10 for t = 1 to 50 20 input a 30 c = c + a 40 next t 50 print c
Sum = Sum + first number Sum = Sum + second number Sum = Sum + third number Average = 1/3 x Sum
to print the sum of first ten numbers:- void main() {int i,sum; sum=0; while(i<=10) sum=sum+i; i=i+1; } printf("The sum is : %d",sum); }
The following will sum all integers from 1-100. Adjust according to your needs.int sum = 0;for (int i = 1; i
The sum is 50 and 31/40 The difference is 1/40
It is: 7+8+25 = 40
5(8 + 5)
Thw two numbers are 25 and 15 because 25+15 = 40 and 25-15 = 10
The sum of twenty-five and fifteen = 25 + 15 = 40
25 and 15
15 and 25
The two numbers are 25 and 15
The numbers are 25 and 15
The numbers are 25 and 15
It's 25 and 15
It is so very simple and quick to get the answer, especially since, IF you need it, you can use the calculator that comes with your computer. But since you are obviously not able to do so, the answer is 40.