2^3 => 1
5^2 => 7
if (2^3 != 1) puts("two cubed is not one"); if (5^2 != 7) puts("five squared is not seven");
The trick is operator precedence.
Reply on news.ycombinator.com