Menu
×
×
正确
int day = 4;
switch (@(3)) {
@(4) 1:
cout << "Saturday";
break;
@(4) 2:
cout << "Sunday";
@(5);
@(7):
cout << "Weekend";
}
int day = 4;
switch (day) {
case 1:
cout << "Saturday";
break;
case 2:
cout << "Sunday";
break;
default:
cout << "Weekend";
}
不正确
点击 此处 重试 正确
下一题 ❯int day = 4; switch (w3exercise_input_no_0) {w3exercise_input_no_11: cout << "Saturday"; break;w3exercise_input_no_22: cout << "Sunday";w3exercise_input_no_3;w3exercise_input_no_4: cout << "Weekend"; } |