Menu
×
×
正确
int day = 3;
switch (@(3))
{
@(4) 1:
Console.WriteLine("Today is Saturday");
break;
@(4) 2:
Console.WriteLine("Today is Sunday");
@(5);
@(7):
Console.WriteLine("Looking forward to the Weekend");
@(5);
}
int day = 3;
switch (day)
{
case 1:
Console.WriteLine("Today is Saturday");
break;
case 2:
Console.WriteLine("Today is Sunday");
break;
default:
Console.WriteLine("Looking forward to the Weekend");
break;
}
不正确
点击 此处 重试 正确
下一题 ❯int day = 3; switch (w3exercise_input_no_0) {w3exercise_input_no_11: Console.WriteLine("Today is Saturday"); break;w3exercise_input_no_22: Console.WriteLine("Today is Sunday");w3exercise_input_no_3;w3exercise_input_no_4: Console.WriteLine("Looking forward to the Weekend");w3exercise_input_no_5; } |