Anonymous user
Count in octal: Difference between revisions
Previous version did not run until the maximum value was reached
m (Added Ada code) |
(Previous version did not run until the maximum value was reached) |
||
Line 7:
procedure Octal is
package IIO is new Ada.Text_IO.Integer_IO(Integer);
begin
for I in 0 .. Integer'Last loop
IIO.
end loop;
end Octal;</lang>
Output:
<pre>
8#1#
8#2#
8#3#
8#4#
8#5#
8#6#
8#7#
8#10#
8#11#
8#12#
8#13#
8#14#
8#15#
8#16#
8#17#
8#20#</pre>
=={{header|ALGOL 68}}==
{{works with|ALGOL 68G|Any - tested with release [http://sourceforge.net/projects/algol68/files/algol68g/algol68g-1.18.0/algol68g-1.18.0-9h.tiny.el5.centos.fc11.i386.rpm/download 1.18.0-9h.tiny].}}
|