The second loop doesnt work. When I compile it doesnt output any text, it just asks for the inputs and stops there
It means that the second loop isnt being executed, just the first one but i dont know why
balance0 = float(input("balance = " ))
annualInterestRate = float(input("annualInterestRate = " ))
monthlyPayment = 10
balance = 0
month = 1
while (0):
balance = balance0
while month <= 12:
balance1= (balance + annualInterestRate * balance/12)
balance1 = balance1 - (monthlyPayment)
print("Remaining balance month " , month, " is ", balance1)
balance = balance1
month += 1
if balance < 0:
print("Lowest payment: ", monthlyPayment)
break
else:
monthlyPayment += 10
The loop
while month <= 12
doesnt make it to run, why?