You are not logged in. Please login at www.codechef.com to post your questions!

×

Can you tell me which test case is failing?

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

asked 11 Jul, 22:03

cqwer's gravatar image

2★cqwer
11
accept rate: 0%

edited 12 Jul, 10:17

you have messed up with the link please repost it. Paste your code on ideone.com and then share your link

(11 Jul, 22:20) divik5444★

include <iostream>

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;

}

link

answered 15 Sep, 16:55

pradeeppatidar's gravatar image

0★pradeeppatidar
1
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×195
×20

question asked: 11 Jul, 22:03

question was seen: 91 times

last updated: 12 Jul, 10:17