Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Bitwise-operations/11l/bitwise-operations.11l
Normal file
12
Task/Bitwise-operations/11l/bitwise-operations.11l
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
V x = 10
|
||||
V y = 2
|
||||
print(‘x = ’x)
|
||||
print(‘y = ’y)
|
||||
print(‘NOT x = ’(-)x)
|
||||
print(‘x AND y = ’(x [&] y))
|
||||
print(‘x OR y = ’(x [|] y))
|
||||
print(‘x XOR y = ’(x (+) y))
|
||||
print(‘x SHL y = ’(x << y))
|
||||
print(‘x SHR y = ’(x >> y))
|
||||
print(‘x ROL y = ’rotl(x, y))
|
||||
print(‘x ROR y = ’rotr(x, y))
|
||||
Loading…
Add table
Add a link
Reference in a new issue