代码如下:
using System; class Switch_Test2 { static void Main() { int n = 2; switch (n) { case 1: case 2: case 3: Console.WriteLine("这个是, 2, or 3."); break; default: Console.WriteLine("无法确定!"); break; } } }
2023-11-10 19:19:58
代码如下:
using System; class Switch_Test2 { static void Main() { int n = 2; switch (n) { case 1: case 2: case 3: Console.WriteLine("这个是, 2, or 3."); break; default: Console.WriteLine("无法确定!"); break; } } }