I have written following code for ATM problem. I dont understand why codechef is showing result as wrong answer?
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int x;
float y = 120.00;
cin>>x;
float t = (float)x+0.50;
if(t<=y && x%5==0 && x>0)
{
y=y-t;
cout<<fixed << setprecision(2) << y << endl;
}
else
cout<<fixed << setprecision(2) << y<< endl;
return 0;
}