Using the Python language, have the function SimpleAdding(num) add up all the numbers from 1 to num. For the test cases, the parameter num will be any number from 1 to 1000.
def SimpleAdding(num):
# code goes here
if num > 1:
return num + SimpleAdding(num-1)
else:
return 1
# keep this function call here
# to see how to enter arguments in Python scroll down
print SimpleAdding(raw_input())
Input = 12Output = 78