using System;
namespace switch_
{
class Program
{
static void Main(string[] args)
{
int salary = 0;
Console.WriteLine("请输入张三的等级");
string level = Console.ReadLine();
switch (level)
{
case "A": salary += 100;
break;
case "B":
salary += 200;
break;
case "C":
salary += 300;
break;
case "D":
salary += 400;
break;
default:Console.WriteLine("输入有误");
break;
}
Console.WriteLine("张三的工资为{0}", salary);
Console.ReadKey();
}
}
}