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

ATM PROBLEM ERROR

$
0
0

the judge is saying this is wrong ! i can't find the error. please help ! thanks.

include <iostream>

include <iomanip>

using namespace std;

int main() {int x; float y; cin>>x>>y;

if(x%5==0 && x<=(y-0.5)) y=y-x-0.50; cout<<setprecision(2)<<y; }


Viewing all articles
Browse latest Browse all 39796

Trending Articles



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