total = 0 while total <= 50: total += int(input("Enter a number: ")) print("The total is: ", total) input("Press enter to continue")