Thank you for you help fixing my calculator's multiply function, but I've found another critical error all calculators seem to share. None of them understand that 2+2=fish. So now I need code to properly add 2 numbers.
Challenge
- Take 2 numbers as input (Type doesn't matter, but only 2 items will be passed. This is addition, so order obviously doesn't matter.)
- Output sum of both numbers except if they are both 2, then output
fish
(case insensitive)- PS. I never was really good with counting, so I think only Integers from 0 to 99 are real numbers (Type used doesn't matter)
- Fewest bytes per language wins!
(NOTE: The key difference between this challenge and the previous, is that order is now irrelevant, and the return type is not restricted to int, which has major implications for type safe languages like Java. You can also see in the answers already here that in non type strict languages like Python, this rule set can dramatically change the answer code.)