I am wrting solutiong for https://www.codechef.com/problems/M31 but it gives wrong answer. Can you tell me which test case is failing?
Here is my code: https://ideone.com/z7XeSX1
you have messed up with the link please repost it. Paste your code on ideone.com and then share your link
#include
using namespace std;
int main() {
int y={700},x;
float s;
cin>>x;
if(x%5==0)
{
if(y>=(x+0.5))
{
s=y-(x+0.5);
cout<<"avilable balance:"<<s;
}
else
{
cout<<"withdraw balance more than avilable balance:";
}}
else{
cout<<"not multipal of 5";
}
return 0;
}