Loops/While: Difference between revisions
Content added Content deleted
(added Fantom example) |
|||
Line 215: | Line 215: | ||
<lang false>1024[$0>][$." |
<lang false>1024[$0>][$." |
||
"2/]#%</lang> |
"2/]#%</lang> |
||
=={{header|Fantom}}== |
|||
<lang fantom> |
|||
class Main |
|||
{ |
|||
public static Void main () |
|||
{ |
|||
Int i := 1024 |
|||
while (i > 0) |
|||
{ |
|||
echo (i) |
|||
i /= 2 |
|||
} |
|||
} |
|||
} |
|||
</lang> |
|||
=={{header|Forth}}== |
=={{header|Forth}}== |