C examples for Statement:for
The continue statement causes the loop to restart and executes the next a round for loop.
#include <stdio.h> int main()/* ww w .j a v a2 s . c o m*/ { int x; for ( x = 10; x > 5; x-- ) { if ( x == 7 ) continue; printf("\n%d\n", x); } //end for loop }