#作业要求
#代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入要计算的人的姓名");
string name = Console.ReadLine();
switch(name)
{
case "老杨":
Console.WriteLine("老杨上辈子是折翼的天使");
break;
case "老苏":
Console.WriteLine("老苏上辈子是老鸨子");
break;
case "老邹":
Console.WriteLine("老邹上辈子是老苏的手下");
break;
case "老虎":
Console.WriteLine("老虎上辈子被武松挂了");
break;
case "老牛":
Console.WriteLine("老牛上辈子是Cow");
break;
default:
Console.WriteLine("上辈子没有这个人");
break;
}
Console.ReadKey();
}
}
}
网友评论