正確答案哦
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? string job = "科長";
? ? ? ? ? ? if (job == "局長")
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("發(fā)雙黃月餅");
? ? ? ? ? ? }
? ? ? ? ? ? else if (job == "處長")
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("發(fā)蛋黃月餅");
? ? ? ? ? ? }
? ? ? ? ? ? else ?if(job == " 科長 ?" ?)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("發(fā)棗泥月餅");
? ? ? ? ? ? }
? ? ? ? ? ? else ?
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("發(fā)五仁月餅");
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
2017-09-28
發(fā)棗泥月餅