//命名空间
namespace Common
{
//类
internal class Program
{
//程序入口方法
static void Main(string[] args)
{
int week = Convert.ToInt32(Console.Read());
switch(week)
{
case 1:
Console.WriteLine("C#");
break;
case 2:
Console.WriteLine("Java");
break;
case 3:
Console.WriteLine("Dynamics 365");
break;
default:
Console.WriteLine("be on furlough!");
break;
}
}
}
}
C# switch语句
于 2023-04-06 10:52:37 首次发布