C#系列教程——switch例子2
时间:2014-01-21 10:06:41
收藏:0
阅读:358
代码如下:
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; } } }
原文:http://blog.csdn.net/jianxia_wzx/article/details/8546257
评论(0)