langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
9
Task/Bitwise-operations/Pascal/bitwise-operations.pascal
Normal file
9
Task/Bitwise-operations/Pascal/bitwise-operations.pascal
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var
|
||||
a, b: integer;
|
||||
begin
|
||||
a := 10; { binary 1010 }
|
||||
b := 12; { binary 1100 }
|
||||
writeln('a and b = ', a and b); { 8 = 1000 }
|
||||
writeln('a or b = ', a or b); { 14 = 1110 }
|
||||
writeln('a xor b = ', a xor b) { 6 = 0110 }
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue