美文网首页
第三次作业第三题

第三次作业第三题

作者: 雯丢丢 | 来源:发表于2018-10-25 22:16 被阅读0次

namespace

{

    class Program

    {

        static void Main(string[] args)

        {

            //让用户输入天数

            Console.WriteLine("请输入天数");

            string day = Console.ReadLine();

            int intday = Convert.ToInt32(day);

            int zhou = intday / 7;

            int tian = intday % 7;

            Console.WriteLine("{0}周零{1}天",zhou,tian);

            Console.ReadKey();

        }

    }

}

相关文章

网友评论

      本文标题:第三次作业第三题

      本文链接:https://www.haomeiwen.com/subject/bwlhtqtx.html