# AddNumbers.py
#
# Practice adding numbers using a function
#
def print_sum(max):
sum = 0
for n in range(max+1):
sum = sum + n
print("The sum of 1 to", max, "is", sum)
print_sum(3)
print_sum(10)
print_sum(200)
print_sum(1000)