# Homework 18, problem 3 -- solution. i = 1 total = 0 while True: total = total + i if total > 100: break i = i + 1 print("Stopped at i = " + str(i) + " with total = " + str(total))