Jump to content

Loops/While: Difference between revisions

Torque while loop
m (→‎{{header|REXX}}: showed J & X are both integers. -- ~~~~)
(Torque while loop)
Line 1,031:
intDiv(i, 2) → i
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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.