What is the sum of all integers from 1 to 100 inclusive
Note
Use pairing or formula: sum = n(n+1)/2 = 100×101/2 = 5050, so the total is 5050.
What is the sum of all integers from 1 to 100 inclusive
Use pairing or formula: sum = n(n+1)/2 = 100×101/2 = 5050, so the total is 5050.