Given an integer N, find the sum of all the numbers from 1 to N inclusive
1
1
The sum of all numbers from 1 to 1 = 1
5
15
The sum of all the numbers from 1 to 5 =
1 + 2 + 3 + 4 + 5 = 15
3
6
The sum of all the numbers from 1 to 3 =
1 + 2 + 3 = 6
Test your solution here
when it passes, copy it and submit it here so your coach can grade it.