Jump to content

Loops/While: Difference between revisions

No edit summary
Line 511:
<lang prolog>while(0) :- !.
while(X) :- X>0,write(X), nl, X1 is X // 2, while(X1).</lang>
 
=={{header|PureBasic}}==
<lang PureBasic>OpenConsole()
x.i = 1024
While x > 0
PrintN(Str(x))
x / 2
Wend
 
Repeat
Until Inkey() <> ""</lang>
 
=={{header|Python}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.