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

ATM problem showing runtime error

$
0
0
#include <stdio.h>
int main()
{
int wi;
float ab;
scanf("%4d%4.2f", &wi, &ab);
if(ab>wi&&(wi%5==0))
printf("%4.2f", (ab-wi-0.5));
else
printf("%4.2f", ab);
}

i don't know why it is showing runtime error. i tested it with the examples, and they are working.


Viewing all articles
Browse latest Browse all 39796

Trending Articles



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