[5 / 2 / ?]
Quoted By: >>1121290
Could someone fix this program to have break?
[code:lit]
total = 0
while(True):
num = int(input("Give me a positive number "))
if num >= 0:
total += num
else:
print("Your total is " + str(total))
[/code:lit]
[code:lit]
total = 0
while(True):
num = int(input("Give me a positive number "))
if num >= 0:
total += num
else:
print("Your total is " + str(total))
[/code:lit]