# Help me in solving CLB108 problem

### My issue

include <stdio.h>

int main() {
int n;

``````printf("Enter a number: ");
scanf("%d", &n);

printf("Series of numbers from 0 to 12, skipping %d:\n", n);

for (int i = 0; i <= 12; ++i) {
if (i == n) {
continue;  // Skip the number inserted by the user
}
printf("%d\n", i);
break;
}

return 0;
``````

}

### My code

``````#include <stdio.h>

int main() {
int n;

printf("Enter a number: ");
scanf("%d", &n);

printf("Series of numbers from 0 to 12, skipping %d:\n", n);

for (int i = 0; i <= 12; ++i) {
if (i == n) {
continue;  // Skip the number inserted by the user
}
printf("%d\n", i);
break;
}

return 0;
}

``````

Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone

@prasathv2806
U need not to print the extra statements , U can do it like this only.

``````#include <stdio.h>

int main() {

int n;
scanf("%d", &n);
for(int i = 0; i <= 12; i = i + 1) {
if (i == n) {
continue;
}
printf("%d\n", i);
}

return 0;
}

``````