2559 - EECS2310_Lec_3 Scoreboard

Time

2022/09/26 08:45:00 2022/09/26 10:30:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
13596 EECS2310_Lec_3_1
13597 EECS2310_Lec_3_2

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




13597 - EECS2310_Lec_3_2   

Description

Print pattern as described in class.

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss