Bitwise operations: Difference between revisions
Content added Content deleted
(Fixed bug in D code) |
(Added DWScript) |
||
Line 370: | Line 370: | ||
Readln; |
Readln; |
||
end.</lang> |
end.</lang> |
||
=={{header|DWScript}}== |
|||
<lang Delphi>PrintLn('2 and 3 = '+IntToStr(2 and 3)); |
|||
PrintLn('2 or 3 = '+IntToStr(2 or 3)); |
|||
PrintLn('2 xor 3 = '+IntToStr(2 xor 3)); |
|||
PrintLn('not 2 = '+IntToStr(not 2)); |
|||
PrintLn('2 shl 3 = '+IntToStr(2 shl 3)); |
|||
PrintLn('2 shr 3 = '+IntToStr(2 shr 3));</lang> |
|||
=={{header|E}}== |
=={{header|E}}== |