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作业三_第1张图片
图片发自App

你可能感兴趣的:(2018-10-25作业三)