Loops/While: Difference between revisions

m
Added some more syntax highlighting...whoever keeps putting that "pre language=" stuff in is really wrong
(Specified the value type per discussion. Shouldn't mess anything up.)
m (Added some more syntax highlighting...whoever keeps putting that "pre language=" stuff in is really wrong)
Line 22:
 
=={{header|C}}==
<pre language="c">int i = 1024;
while(i > 0) {
printf("%d\n", i);
i /= 2;
}</prec>
 
=={{header|Forth}}==
Line 43:
 
=={{header|JavaScript}}==
<javascript>var n = 1024;
while (n>0) {
print(n);
n/=2;
}</javascript>
}
 
=={{header|Logo}}==
Anonymous user