20 ms·That's Bitwise Xor not exponentiation. 2^3 => 1 5^2 => 7by bear8642 6y agoThat's Bitwise Xor not exponentiation. 2^3 => 1 5^2 => 7ramshorns 6y agoIt works though! And if you do if (2^3 != 1) puts("two cubed is not one"); if (5^2 != 7) puts("five squared is not seven"); it prints those messages too. The trick is operator precedence.bear8642 6y agoCool - thought had operator confused