# Arup Guha
# 9/22/2020
# Program to add up the first n positive integers.

# Get user input.
n = int(input("What value would you like for n?\n"))

# Keeps track of running sum.
total = 0

# Loop through each value I want to add to total.
for i in range(1, n+1):

    #Adding i to total
    total = total + i

    # Add a debug statement to see how the two variables are changing.
    print("After adding",i,"my new total is",total)

# Print the result.
print("The sum of the first",n,"positive integers is",total)
