07-25-2023, 10:53 AM
int day = 3;
switch (day) {
case 1:
printf("Monday\n");
break;
case 2:
printf("Tuesday\n");
break;
// ...
default:
printf("Invalid day\n");
}
switch (day) {
case 1:
printf("Monday\n");
break;
case 2:
printf("Tuesday\n");
break;
// ...
default:
printf("Invalid day\n");
}