5 ms·
It 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 me
by ramshorns 6y ago
It 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