Binary digits: Difference between revisions
Content added Content deleted
(→{{header|Java}}: Add JavaScript) |
(→{{header|Go}}: Add Erlang) |
||
Line 60: | Line 60: | ||
=={{header|dc}}== |
=={{header|dc}}== |
||
<lang dc>2o 5p 50p 9000p</lang> |
<lang dc>2o 5p 50p 9000p</lang> |
||
<pre>101 |
|||
110010 |
|||
10001100101000</pre> |
|||
=={{header|Erlang}}== |
|||
<lang erlang>lists:map( fun(N) -> io:fwrite("~.2B~n", [N]) end, [5, 50, 9000]). </lang> |
|||
Output: |
|||
<pre>101 |
<pre>101 |
||
110010 |
110010 |