Loops/While: Difference between revisions

(added swift)
Line 965:
 
The usage of the type int32 is not convenient, since the math is done floating point, then rounding to integer, so that 1/2 will be always 1 and never 0.
 
=={{header|OOC}}==
<lang ooc>
main: func {
value := 1024
while (value > 0) {
value toString() println()
value /= 2
}
}
</lang>
 
=={{header|Oz}}==
Anonymous user