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

what is problem in this why it's saying wrong answer

$
0
0

include <stdio.h>

int main() { int x; float a;

scanf("%d", &x);
scanf("%f", &a);

if(0< x <=2000 && 0<= a <= 2000) {
    if(x%5 == 0) {
            a = a - x-0.50;
        }
}
printf("%.2f", a);

return 0;

}


Viewing all articles
Browse latest Browse all 39796

Trending Articles



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