【单选题】(选择结构)下面这段代码运行结果为( ) int day=3; switch(day){ case 1: case 3: case 5: MessageBox.Show(“学钢琴!”); break; case 2: MessageBox.Show(“学英语!”); break ; default: MessageBox.Show(“休息哦!”); break; }
【单选题】运行下面这段代码的结果为()。 int day = 3; switch ( day ) { case 1: case 3: case 5: System. out .println( " 学钢琴!" ); break ; case 2: System. out .println( " 学英语!" ); default : System. out .println( " 去必胜客吃饭!" ); }
【单选题】(选择结构)下面这段代码运行结果为( ) int day=3; switch(day){ case 1: case 3: case 5: Console.WriteLine(“学钢琴!”); break; case 2: Console.WriteLine(“学英语!”); break ; default: Console.WriteLine(“休息哦!”); break; }