4 ms·
Hey, I've got one! Use the exponent operator. if (2^3 == 8) puts("two cubed is eight"); if (5^2 == 25) puts("five squared is twenty-five");
by ramshorns 6y ago
Hey, I've got one! Use the exponent operator.
if (2^3 == 8)
puts("two cubed is eight");
if (5^2 == 25)
puts("five squared is twenty-five");
- bear8642 6y agoThat's Bitwise Xor not exponentiation. 2^3 => 1 5^2 => 7