Two's complement: Difference between revisions
Content added Content deleted
Basicgames (talk | contribs) |
|||
Line 157: | Line 157: | ||
end</syntaxhighlight> |
end</syntaxhighlight> |
||
{{out| Output}}<pre> |
|||
-1234567 : 1234567 |
|||
-1234566 : 1234566 |
|||
-2 : 2 |
|||
-1 : 1 |
|||
0 : 0 |
|||
1 : -1 |
|||
2 : -2 |
|||
1234565 : -1234565 |
|||
1234566 : -1234566 |
|||
</pre> |
|||
=={{header|Delphi}}== |
=={{header|Delphi}}== |