Welcome to MindCipher, a social repository of the world's greatest brain teasers, logic puzzles and mental challenges.

Oliver Matthews

Likes 0

Oliver Matthews must be new here...

Ratings 0

No ratings yet!

Comments 1

No if() Only abs()

Thinking about this, I'm fairly sure it is impossible unless you do one of the following: 1. allow numbers in the algorithm (as per solution) 2. assume at least one of the values is not 0. (as per below) 3. allow ^ 4. use a system that defines 0/0 as 1 (i.e. is wrong).

the last two would allow you to implicitly get a 1 by doing (a^a)/(a^a) or a/a respectively (and thus a 2 through addition).

context