Non-decimal radices/Output: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|Phix}}: added sample output) |
||
Line 1,156: | Line 1,156: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
<lang phix>for i= |
<lang phix>for i=2 to 32 by 10 do |
||
printf(1,"decimal:% |
printf(1,"decimal:%3d hex:%3x octal:%3o binary:%7b\n",i) |
||
end for</lang> |
end for</lang> |
||
{{out}} |
|||
<pre> |
|||
decimal: 2 hex: 2 octal: 2 binary: 10 |
|||
decimal: 12 hex: C octal: 14 binary: 1100 |
|||
decimal: 22 hex: 16 octal: 26 binary: 10110 |
|||
decimal: 32 hex: 20 octal: 40 binary: 100000 |
|||
</pre> |
|||
=={{header|Phixmonti}}== |
=={{header|Phixmonti}}== |