logo
logo

Sum of a Range

Sum of a Range

Write a function called sumRange that takes two numbers as arguments and logs the sum of all numbers between those two numbers (inclusive) using a while loop.

Console
Submit
Solution
00:00