# Print the sum of the first n integers # Neal Nelson 2007.10.07 def main(): n = input("Enter a positive integer: ") sum = 0 for i in range(1,n+1): sum = sum + i print "The sum is: ", sum main()