hello my code is given below …
#include
#include
using namespace std;
void atm(int x,double y);
int main(int argc, char const *argv[])
{
int x;
double am;
cin>>x>>am;
if(x%5==0 && x<am)
atm(x,am);
else
cout<<am;
return 0;
}
void atm(int x,double y)
{
y=y-x-0.50;
printf("%0.2f\n",y);
}
my problem is why codechef says this is wrong ans when i try to run it. it gives exact answer