Jump to content

Flow-control structures: Difference between revisions

m
→‎{{header|AWK}}: fixed italic markup
m (→‎{{header|AWK}}: fixed italic markup)
Line 108:
 
=={{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
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.