static void Main(string[] args)
{
string job = "处长";//职务
switch (job)
{
case "局长": Console.Write("发双黄月饼"); break;
case "处长": Console.Write("发蛋黄月饼"); break;
case "科长": Console.Write("发枣泥月饼"); break;
case "杂鱼": Console.Write("发五仁月饼"); break;
}
}
}
}
{
string job = "处长";//职务
switch (job)
{
case "局长": Console.Write("发双黄月饼"); break;
case "处长": Console.Write("发蛋黄月饼"); break;
case "科长": Console.Write("发枣泥月饼"); break;
case "杂鱼": Console.Write("发五仁月饼"); break;
}
}
}
}
2015-12-27
{ int[] score = new int[] { 29, 57, 61, 89,45, 70, 69 };
Console.WriteLine("Students who faild are: ");
for (int i = 0; i < score.Length; i++)
{
if (score[i] <60)
Console.WriteLine(score[i] + " ");
}
Console.WriteLine("Students who faild are: ");
for (int i = 0; i < score.Length; i++)
{
if (score[i] <60)
Console.WriteLine(score[i] + " ");
}
2015-12-27