Code Snippets C

#include
main() {
int j,n;
scanf("%d",&n);
for(j = 1; j switch(j%2) {
case 0 : printf("the number %d is even \n",j);
break;
case 1 : printf("the number %d is odd \n",j);
break;
}
}
}