Count in octal: Difference between revisions
Content added Content deleted
({{header|Lua}}) |
|||
Line 51: | Line 51: | ||
print(string.format("%o",l)) |
print(string.format("%o",l)) |
||
end</lang> |
end</lang> |
||
=={{header|Modula-2}}== |
|||
<lang Modula-2>MODULE octal; |
|||
IMPORT InOut; |
|||
VAR num : CARDINAL; |
|||
BEGIN |
|||
num := 0; |
|||
REPEAT |
|||
InOut.WriteOct (num, 12); InOut.WriteLn; |
|||
INC (num) |
|||
UNTIL num = 0 |
|||
END octal.</lang> |
|||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |