Literals/Integer: Difference between revisions
Content deleted Content added
Line 24: | Line 24: | ||
727 727 727 727 |
727 727 727 727 |
||
</pre> |
</pre> |
||
=={{header|ALGOL 68}}== |
|||
{{trans|fortran}} |
|||
{{works with|ALGOL 68|Standard - no extensions to language used}} |
|||
{{works with|ALGOL 68G|Any - tested with release mk15-0.8b.fc9.i386}} |
|||
{{works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release 1.8.8d.fc9.i386}} |
|||
<pre> |
|||
main:( |
|||
INT dec = 727; |
|||
INT hex = ABS 16r2d7; |
|||
INT oct = ABS 8r1327; |
|||
INT bin = ABS 2r1011010111; |
|||
print((dec, hex, oct, bin, new line)) |
|||
) |
|||
</pre> |
|||
<pre> |
|||
+727 +727 +727 +727 |
|||
</pre> |
|||
=={{header|AWK}}== |
=={{header|AWK}}== |
||