Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Bitwise-operations/Delphi/bitwise-operations.delphi
Normal file
14
Task/Bitwise-operations/Delphi/bitwise-operations.delphi
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
program Bitwise;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
begin
|
||||
Writeln('2 and 3 = ', 2 and 3);
|
||||
Writeln('2 or 3 = ', 2 or 3);
|
||||
Writeln('2 xor 3 = ', 2 xor 3);
|
||||
Writeln('not 2 = ', not 2);
|
||||
Writeln('2 shl 3 = ', 2 shl 3);
|
||||
Writeln('2 shr 3 = ', 2 shr 3);
|
||||
// there are no built-in rotation operators in Delphi
|
||||
Readln;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue