Non-decimal radices/Output: Difference between revisions

m
→‎{{header|D}}: works -> libhdr
m (→‎{{header|D}}: works -> libhdr)
Line 170:
 
=={{header|D}}==
{{works with|Tango}}
 
Number following formatting character is width. When no formatting
character is specified it is inferred from variable's type.
 
{{works withlibheader|Tango}}
<lang d>for (int i = 0; i < 35; i++)
Stdout.formatln ("{:b8} {:o3} {} {:x2}", i, i, i, i);</lang>
Anonymous user