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; }
the judge is saying this is wrong ! i can't find the error. please help ! thanks.
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; }