希望对你有帮助,已测试
static void Main(string[] args)
{
Console.WriteLine("请输入你要季度月份:");
int month = int.Parse(Console.ReadLine());
switch (month)
{
case 1:
case 2:
case 3:
Console.WriteLine("{0}月份是第三季度", n);
break;
case 4:
case 5:
case 6:
Console.WriteLine("{0}月份是第三季度", n);
break;
case 7:
case 8:
case 9:
Console.WriteLine("{0}月份是第三季度", n);
break;
case 10:
case 11:
case 12:
Console.WriteLine("{0}月份是第三季度", n);
break;
}
}
switch(key)
{
case 1:
case 2:
case 3: 输出 1季度 break;
case 4:
case 5:
case 6: 输出2季度 break;
剩下自己写
}
要用什么语言写?