Find the sum of all integers from 1 to 100, inclusive.
There are 100 integers, so the sum is (1+100)×100/2 = 5050.
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.