Loops/While: Difference between revisions

m
→‎{{header|Ruby}}: migrating content from Loop Structures
m (→‎{{header|Ruby}}: migrating content from Loop Structures)
Line 411:
i /= 2
end</lang>
Ruby also has a "while" statement modifier:
<lang ruby>i = 2048
puts i /=2 while i > 0</lang>
 
=={{header|Scheme}}==
Anonymous user