Non-decimal radices/Output: Difference between revisions

m
→‎{{header|Phix}}: added sample output
No edit summary
m (→‎{{header|Phix}}: added sample output)
Line 1,156:
 
=={{header|Phix}}==
<lang phix>for i=12 to 3332 by 10 do
printf(1,"decimal:%6d3d hex:%6x HEX:%6X3x octal:%6o3o binary:%6b7b\n",{i,i,i})
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}}==
7,805

edits