Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

ATM , Python Runtime Error ! Nzec

$
0
0

balance=int(raw_input()) while True: withdraw=int(raw_input())

if withdraw <= 2000 and withdraw%5==0 and balance<=2000:
    if withdraw<balance:
        balance=(balance-(withdraw+0.50))
        print "%.2f" % balance
    else:
        print "%.2f" % balance
else:
    break

What is going wrong in my code?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>