插入缺失的部分以完成以下 switch
语句。
int day = 2; switch (@(3)) { @(4) 1: Console.WriteLine("Monday"); break; @(4) 2: Console.WriteLine("Tuesday"); @(5); }
int day = 2; switch (day) { case 1: Console.WriteLine("Monday"); break; case 2: Console.WriteLine("Tuesday"); break; }