Ad
  • Default User Avatar

    Thanks by the answer!

    I was so naive trusting in your tests...

    For the ones comming after this point: Don't forget 'everything is a lie'! (even this, maybe)

  • Default User Avatar

    Everything is correct, it's just neither addition nor multiplication. Come back later maybe, people learn things in different orders, so I think it might be harder than 7 kyu for some.

  • Custom User Avatar

    you mean return a+b? no no no.. It's not the correct answer, so you should thinking and testing, find the correct answer. This is a puzzle, and the title of kata is a hint. a and b? a ? b..

  • Default User Avatar

    There must be a problem with the tests in c++...
    My code can only returns the sum or the product (if/else case).
    But the test passing 2 and 2 failed (expected 4, actual 2).
    It is not possible! Can you verify this problem for me, please?