/* Counter-controlled repetition with the for structure */
/* check the order */
#include <stdio.h>

main()
{
   int counter;
   int max;

   scanf("%d",&max);
   printf("You entered %d\n",max);
   
   /* initialization, repetition condition, and increment */
   /* are all included in the for structure header        */
   for (counter = 1; counter <= max; counter=counter+1) {
      
      printf("%d\n", counter);
      printf("%d\n\n", counter);

      if (counter == 3) continue;
      }

   printf("counter value is %d\n",counter);
   return 0;
}

