ATM: showing wrong answer

#include
using namespace std;
int main()
{
int n;
double total;
cout<<“Enter the amount to withdraw”<<endl;
cin>>n;
cout<<“Your account balance”<<endl;
cin>>total;
if( (n % 5) != 0)
{
cout<< n <<endl;
cout<< total;
}
else if(((n % 5) != 0)||(n>total))
{
cout<<total;
}
else
{
total = total - (n + 0.50);
cout<< total;
}
return 0;
}

Please, read FAQ - FAQ | CodeChef

If your program starts by printing ‘Enter the number’ and the problem does not tell you to do so, then since this is not part of the correct output, you will be never be judged correct regardless of what the rest of your program does.