//让用户输入天数,并计算这个天数是几周零几天,比如46天是六周零四天
Console.WriteLine("请输入要计算的天数");
int day = Convert.ToInt32(Console.ReadLine());
int week = day / 7;//求得天数
day = day % 7; //零得那几天
Console.WriteLine("{0}天是{1}周零{2}天",day,week,day);
Console.ReadKey();
//让用户输入天数,并计算这个天数是几周零几天,比如46天是六周零四天
Console.WriteLine("请输入要计算的天数");
int day = Convert.ToInt32(Console.ReadLine());
int week = day / 7;//求得天数
day = day % 7; //零得那几天
Console.WriteLine("{0}天是{1}周零{2}天",day,week,day);
Console.ReadKey();