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

10 lines
184 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# 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