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)
{
//要判断一周中的某一天是否为工作日,使用数字1~7来表示星期一到星期天,
//当输入的数字为1、2、3、4、5时就视为工作日,否则就视为休息日。
Console.WriteLine("请输入日期");
int x = Convert.ToInt32(Console.ReadLine());
switch(x)
{
case 1: Console.WriteLine("今天是工作日"); break;
case 2: Console.WriteLine("今天是工作日"); break;
case 3: Console.WriteLine("今天是工作日"); break;
case 4: Console.WriteLine("今天是工作日"); break;
case 5: Console.WriteLine("今天是工作日"); break;
case 6: Console.WriteLine("今天是休息日"); break;
case 7: Console.WriteLine("今天是休息日"); break;
default: Console.WriteLine("不在日期范围内"); break;
}
Console.ReadKey();
}
}
}