标签:
Console.WriteLine("1.汉堡包");
Console.WriteLine("2.薯条");
Console.WriteLine("3.鸡块");
Console.WriteLine("4.鸡腿");
Console.WriteLine("5.鸡米花");
Console.Write("请输入您的选择项目数字:");
string a = Console.ReadLine();
swich(a)
{
case “1”:
Console.WriteLine("您选择的是汉堡包");
break;
case "2":
Console.WriteLine("您选择的是薯条");
break;
case "3":
Console.WriteLine("您选择的是鸡块");
break;
case "4":
Console.WriteLine("您选择的是鸡腿");
break;
case "5":
Console.WriteLine("您选择的是鸡米花");
break;
}
console.readline();
标签:
原文地址:http://www.cnblogs.com/cycanfly/p/5157967.html