Flow-control structures: Difference between revisions
Content added Content deleted
(→{{header|Tcl}}: Add example of 'try' for exception handling) |
(→{{header|C}}: + AWK) |
||
Line 106:
etc...
</pre>
=={{header|AWK}}==
Awk has ''break'' and continue'' for loop control, as in C.
<lang awk$ awk 'BEGIN{for(i=1;;i++){if(i%2)continue; if(i>=10)break; print i}}'
2
4
6
8</lang>
=={{header|C}}==
|