diff --git a/src/sumRange.py b/src/sumRange.py index 124746f..17e4b65 100644 --- a/src/sumRange.py +++ b/src/sumRange.py @@ -1,3 +1,3 @@ # return the sum of all numbers from 1 to x. x will be a positive integer. def sumRange(x): - pass \ No newline at end of file + return x * (x + 1) / 2