y=“Initial_Balance”
y=float(input(">"))
x=“Transaction”
x=int(input(">"))
if (x%5)==0 and y>=(0.5+x):
z=y-x-0.5
print(’%.2f’z)
else:
print('.2f’%y)
What is wrong in the code?
It shows runtime error everytime.
y=“Initial_Balance”
y=float(input(">"))
x=“Transaction”
x=int(input(">"))
if (x%5)==0 and y>=(0.5+x):
z=y-x-0.5
print(’%.2f’z)
else:
print('.2f’%y)
What is wrong in the code?
It shows runtime error everytime.