Binary digits: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1,274: | Line 1,274: | ||
=={{header|Elena}}== |
=={{header|Elena}}== |
||
ELENA |
ELENA 4.x : |
||
<lang elena>import system'routines |
<lang elena>import system'routines; |
||
import extensions |
import extensions; |
||
public program |
public program() |
||
{ |
|||
[ |
|||
new int[]{5,50,9000}.forEach:(n) |
|||
{ |
|||
console |
console.printLine(n.toString(2)) |
||
} |
|||
}</lang> |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre> |