answersLogoWhite

0


Best Answer

The sum of the first 40 positive integers (1-40) is: 820

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the sum of the first forty positive integers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Educational Theory

What is the mystery number rounds to 200 when rounded to the nearest hundred The sum of its digits is 10 When the number is rounded to the nearest 10 it rounds to a number whose digits have a sum of 5?

226


Write a C program to accept the elements of a 3 x 3 matrix and find its sum of the major diagonal elements The program should print the given matrix along with its sum of the major diagonal elements?

#include <stdio.h> #include <conio.h> void main() { int d[3][3] = { 1, 2, 6, 3, 8, 5, 5, 6, 7 }; int k = 0, j = 0; int sum1 = 0, sum2 = 0; for (j = 0; j < 3; j++) { for (k = 0; k < 3; k++) printf(" %3d", d[j][k]); printf("\n"); } for (j = 0; j < 3; j++) { sum1 = sum1 + d[j][j]; } k = 3 - 1; for (j = 0; j < 3; j++) { if (k >= 0) { sum2 = sum2 + d[j][k]; k--; } } printf("Sum of First diagonal= %d\n", sum1); printf("Sum of Second diagonal= %d", sum2); getch();


C program to find sum of all elements of a matrix?

/* @Autor: MD moniruzzaman http://www.youngprogrammer.com */ #include<stdio.h> #define maxn 5 int matrix[maxn][maxn] = { {1,2,3,3,4},{2,3,4,1,2},{ 4,5,6,7,8},{3,4,5,6,9},{4,3,2,1,0}}; /* Given matrix is: 1 2 3 3 4 2 3 4 1 2 4 5 6 7 9 3 4 5 6 9 4 3 2 1 0 */ int main() { int sum = 0, i, j; for(i = 0; i<5; i++) { for(j = 0; j<5; j++) { sum+= matrix[i][j]; } } printf("%d\n",sum); return 0; }


What is the different sum-of-the-year digits method versus the straight line method?

Straight line depreciation method allocate equal amount for all years while in sum of years digit method depreciation is allocated with high amount in initial years while low amount in later years.


Find two whole numbers whose sum is 166 and difference is 32?

They are: 99+67 = 166 and 99-67 = 32