ATM code problem beginner

i have just started coding i ran this code on replit it works, i also ran this code on codechef it works but when i submit the code it gives run time error i can’t understand why here is my code

x=float(input())
bal =float(input())
if x >=2000:
    print("you cannot make this transaction it exceeds the withdrawl limit choose any amount 2000 or below thank you for your co-operation")
elif x<0:
    print("please enter correct amount")
else:    
     if x%5==0:
         if x< bal:
             bal = bal - x-0.50
             print ("you have successfully withdrawn              USD :", x )
             print("your current balance is :",bal )
         else:
             print("you cannot make withdrawl,    insufficient balance :", bal)
     else:
         print("kindly re-enter amount in 5 or multiples")

hello brother,
are you talking about this: https://www.codechef.com/problems/HS08TEST ?
if yes then you must have to print only output in integer if you write any other thing you got error.
see this my java solution: https://www.codechef.com/viewsolution/46258287

I only print answer nothing else like you print in print statement you can remove it then try.

1 Like

thank you will try to do the same

1 Like