Non-decimal radices/Output: Difference between revisions

added Dc
(Bc: added output)
(added Dc)
Line 380:
<lang d>for (int i = 0; i < 35; i++)
Stdout.formatln ("{:b8} {:o3} {} {:x2}", i, i, i, i);</lang>
 
=={{header|Dc}}==
<lang Dc>[ dn [ ]P ]sp
[
2o lpx
8o lpx
10o lpx
16o lpx
17o lpx
AP
1+ d21>b
]sb
1 lbx</lang>
Bases above 16 print blank separated "digits" (in decimal)
{{out}}
<pre>1 1 1 1 01
10 2 2 2 02
11 3 3 3 03
100 4 4 4 04
101 5 5 5 05
110 6 6 6 06
111 7 7 7 07
1000 10 8 8 08
1001 11 9 9 09
1010 12 10 A 10
1011 13 11 B 11
1100 14 12 C 12
1101 15 13 D 13
1110 16 14 E 14
1111 17 15 F 15
10000 20 16 10 16
10001 21 17 11 01 00
10010 22 18 12 01 01
10011 23 19 13 01 02
10100 24 20 14 01 03</pre>
 
=={{header|E}}==
73

edits