0
Does anyone know why it is stated in this code that num starts at -1?
num=-1 total =0 while num!= 0: num= int(input("Please enter a number")) total += num print("The total is", total)
1 ответ
num=-1 total =0 while num!= 0: num= int(input("Please enter a number")) total += num print("The total is", total)