0
Why i can't do calculations in loops
print("kwota wprowadzana") x=float(input()) print (" procent skladany") y=float(input()) print ("na ile dni") z=int(input()) while i<z: x=x+x*(y/100) i=i+1 if i==z:break print(x) Compiler shows at x and saying expected na intended block but i dont know why.Can anybody explain this to me?
6 Answers
+ 2
OMG that was that easy. Thanks a lot.
+ 1
I love how modern computer languages tell you whatâs wrong with the code and what line itâs inâŠmakes life much easierđ
0
Ok i understand that "if" here Has no point but how i can intend lines in loop ? Using {} or what ?