RosettaCodeData/Task/Bitwise-operations/EasyLang/bitwise-operations.easy

10 lines
184 B
Plaintext

# numbers are doubles, bit operations use 32 bits and are unsigned
x = 11
y = 2
print bitnot x
print bitand x y
print bitor x y
print bitxor x y
print bitshift x y
print bitshift x -y