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

ATM need help

$
0
0
  #include < stdio.h >

  void main ()

  {

  int w;

  float b;

scanf("%d %f",&w,&b);

if ((w%5==0)&&((b-0.5)>w))

    printf("%.2f",(b-0.5-w));

else

    printf("%.2f",b);
  }

whats wrong in this?


Viewing all articles
Browse latest Browse all 39796

Trending Articles



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