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

ATM problem

$
0
0

include<stdio.h>

main() { int wit; float bal; scanf("%d%f",&wit,&bal); if((wit>0)&&(bal>=0)&&(wit<=2000)&&(bal<=2000)) { bal=(wit>bal)?bal:(wit==bal)?bal:(wit%5==0)?(bal-wit-0.50):bal; printf("%.2f",bal); } return 0; }

please tell me what is wrong in this code?


Viewing all articles
Browse latest Browse all 39796

Trending Articles



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