Anonymous user
Loops/While: Difference between revisions
+D
m (Added some more syntax highlighting...whoever keeps putting that "pre language=" stuff in is really wrong) |
(+D) |
||
Line 27:
i /= 2;
}</c>
=={{header|D}}==
<D>import std.stdio;
int i = 1024;
void main() {
while(i > 0) {
writefln("%s", i);
i >>= 1;
}
}</d>
=={{header|Forth}}==
|