Loops/While: Difference between revisions

(Added for loops for C and Java)
Line 253:
Invoking it
|make -f while.mk MAX=1024
 
=={{header|Metafont}}==
 
Metafont has no a <tt>while</tt> loop, but it can be "simulated" easily.
 
<lang metafont>a := 1024;
forever: exitif not (a > 0);
show a;
a := a div 2;
endfor</lang>
 
=={{header|Modula-3}}==