Jump to content

Loops/While: Difference between revisions

225 bytes removed ,  2 months ago
imported>Arakov
Line 2,170:
 
=={{header|langur}}==
0.8 changed the keyword for a test only loop from for to while.
 
{{works with|langur|0.8}}
<syntaxhighlight lang="langur">var .i = 1024
while .i > 0 {
writeln .i
.i \= 2
}</syntaxhighlight>
 
{{works with|langur|< 0.8}}
<syntaxhighlight lang="langur">var .i = 1024
for .i > 0 {
writeln .i
.i \= 2
890

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.