Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Bitwise-operations/Red/bitwise-operations.red
Normal file
17
Task/Bitwise-operations/Red/bitwise-operations.red
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Red [Source: https://github.com/vazub/rosetta-red]
|
||||
|
||||
a: 10
|
||||
b: 2
|
||||
|
||||
print [
|
||||
pad "a =" 10 a newline
|
||||
pad "b =" 10 b newline
|
||||
pad "a AND b:" 10 a and b newline
|
||||
pad "a OR b:" 10 a or b newline
|
||||
pad "a XOR b:" 10 a xor b newline
|
||||
pad "NOT a:" 10 complement a newline
|
||||
pad "a >>> b:" 10 a >>> b newline
|
||||
pad "a >> b:" 10 a >> b newline
|
||||
pad "a << b:" 10 a << b newline
|
||||
; there are no circular shift operators in Red
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue