# Author: James Tam # Version: July 2, 2014 sum = 0 i = 1 last = 0 last = int(input("Enter the last number in the sequence to sum : ")) while (i <= last): sum = sum + i print("i = ", i) i = i + 1 print("sum =", sum)