13596 - EECS2310_Lec_3_1   

Description

// Re-write this program as mentioned in the videoclip

#include <stdio.h>
int main() {
   unsigned int i, x;
   scanf("%d", &x);
   for ( i=1; i<= x; ++i ){
      if ( i == 5) {
         continue;
      }
      printf( "%u", i );
   }
   printf( "\nUsed continue to skip printing the value 5\n");
   return 0;
}

 

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss