Loops/While: Difference between revisions
Content added Content deleted
m (→{{Header|Tiny BASIC}}: Works with (Tom Pittman's) TinyBasic.) |
|||
Line 2,583: | Line 2,583: | ||
<!--</syntaxhighlight>--> |
<!--</syntaxhighlight>--> |
||
note: using i=i/2 would iterate over 1000 times until i is 4.94e-324 before the final division made it 0, if it didn't typecheck when it got set to 0.5 |
note: using i=i/2 would iterate over 1000 times until i is 4.94e-324 before the final division made it 0, if it didn't typecheck when it got set to 0.5 |
||
=={{header|Phixmonti}}== |
|||
<syntaxhighlight lang="Phixmonti">/# Rosetta Code problem: https://rosettacode.org/wiki/Loops/While |
|||
by Galileo, 11/2022 #/ |
|||
include ..\Utilitys.pmt |
|||
1024 dup while dup ? 2 / int dup endwhile</syntaxhighlight> |
|||
{{out}} |
|||
<pre>1024 |
|||
512 |
|||
256 |
|||
128 |
|||
64 |
|||
32 |
|||
16 |
|||
8 |
|||
4 |
|||
2 |
|||
1 |
|||
=== Press any key to exit ===</pre> |
|||
=={{header|PHL}}== |
=={{header|PHL}}== |