langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
8
Task/Bitwise-operations/Pop11/bitwise-operations.pop11
Normal file
8
Task/Bitwise-operations/Pop11/bitwise-operations.pop11
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
define bitwise(a, b);
|
||||
printf(a && b, 'a and b = %p\n');
|
||||
printf(a || b, 'a or b = %p\n');
|
||||
printf(a ||/& b, 'a xor b = %p\n');
|
||||
printf(~~ a, 'not a = %p\n');
|
||||
printf(a << b, 'left shift of a by b = %p\n');
|
||||
printf(a >> b, 'arithmetic right shift of a by b = %p\n');
|
||||
enddefine;
|
||||
Loading…
Add table
Add a link
Reference in a new issue