← all problems

Fix addUpTo 🌶️

The method below is supposed to return the sum of the ints from 1 up to and including n, so addUpTo(5) is 15. It leaves n out of the sum. Find the bug and fix it. Run the tests and read each result: a wrong value, an exception and a compile error are different clues.