Count in octal: Difference between revisions
Content deleted Content added
Line 1,037: | Line 1,037: | ||
puts "%o" % n |
puts "%o" % n |
||
n += 1 |
n += 1 |
||
end |
|||
# or |
|||
for n in 0..Float::INFINITY |
|||
puts n.to_s(8) |
|||
end |
|||
# or |
|||
0.upto(1/0.0) do |n| |
|||
printf "%o\n", n |
|||
end</lang> |
end</lang> |
||
=={{header|Run BASIC}}== |
=={{header|Run BASIC}}== |
||
<lang runbasic>input "Begin number:";b |
<lang runbasic>input "Begin number:";b |