/* Fig. 4.12: fig04_12.c
   Using the continue statement in a for statement */
#include <stdio.h>
/* function main begins program execution */
int main( void )
{
   int x;
   /* loop 10 times */
   for ( x = 1; x <= 10; x++ ) {
      /* if x is 5, continue with next iteration of loop */
      if ( x == 5 ) {
         continue;
      }
      printf( "%d ", x );
   }
   
   printf( "\nUsed continue to skip printing the value 5\n" );
   
   return 0;
}