Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Bitwise-operations/MAXScript/bitwise-operations.max
Normal file
11
Task/Bitwise-operations/MAXScript/bitwise-operations.max
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fn bitwise a b =
|
||||
(
|
||||
format "a and b: %\n" (bit.and a b)
|
||||
format "a or b: %\n" (bit.or a b)
|
||||
format "a xor b: %\n" (bit.xor a b)
|
||||
format "not a: %\n" (bit.not a)
|
||||
format "Left shift a: %\n" (bit.shift a b)
|
||||
format "Right shift a: %\n" (bit.shift a -b)
|
||||
)
|
||||
|
||||
bitwise 255 170
|
||||
Loading…
Add table
Add a link
Reference in a new issue