Console.WriteLine("请输入天数");
string intday = Console.ReadLine();
int day = Convert.ToInt32(intday);
int week = day / 7;
int lastday = day % 7;
Console.WriteLine("{0}是{1}周零{2}天",day,week,lastday );
Console.ReadKey();
2018-10-25作业三Console.WriteLine("请输入天数");
string intday = Console.ReadLine();
int day = Convert.ToInt32(intday);
int week = day / 7;
int lastday = day % 7;
Console.WriteLine("{0}是{1}周零{2}天",day,week,lastday );
Console.ReadKey();
2018-10-25作业三本文标题:2018-10-25作业三
本文链接:https://www.haomeiwen.com/subject/uyqqtqtx.html
网友评论