Loops/While: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: showed J & X are both integers. -- ~~~~)
(Torque while loop)
Line 1,031: Line 1,031:
intDiv(i, 2) → i
intDiv(i, 2) → i
EndWhile</lang>
EndWhile</lang>

=={{header|TorqueScript}}==
This has to make use of mFloor because torque has automatic type shuffling,
causing an infiniteloop.
<lang Torque>%num = 1024;
while(%num > 0)
{
echo(%num);
%num = mFloor(%num / 2);
}</lang>


=={{header|Trith}}==
=={{header|Trith}}==