Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Bitwise-operations/Pascal/bitwise-operations.pas
Normal file
9
Task/Bitwise-operations/Pascal/bitwise-operations.pas
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