P = 910I = 0Total = 0MinPay = 0 while 1==1: I = P*0.01583333333333333333333 MinPay = P*0.025 P = P-(MinPay) Total = I + MinPay if MinPay < 10: MinPay == 10 if P == 0: break else: continueprint(I)print(MinPay)
Standard input is empty
P = 910 I = 0 Total = 0 MinPay = 0 while 1==1: I = P*0.01583333333333333333333 MinPay = P*0.025 P = P-(MinPay) Total = I + MinPay if MinPay < 10: MinPay == 10 if P == 0: break else: continue print(I) print(MinPay)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!