using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { Console.WriteLine("输入天数"); string intday=Console .ReadLine(); int day = Convert.ToInt32(intday); double zhou = day / 7; int yuday = day % 7; Console.WriteLine("{0}天是{1}周,零{2}天", day,zhou, yuday); Console.ReadKey(); } } }
戴超宇#
网友评论