正在加载图片...
练习 int days,month; Console.Write("请输入月份:"); month int.Parse(Console.ReadLine()); switch(month) f case 2: days 28; break; case 4: case 6: case 9: case 11: days 30; break; default: days =31; break; Console.WriteLine("o}月份有{1天",month,days); Console.ReadLine(); 3030 练习 int days, month; Console.Write("请输入月份:"); month = int.Parse(Console.ReadLine( )); switch (month) { case 2: days = 28; break; case 4: case 6: case 9: case 11: days = 30; break; default: days = 31; break; } Console.WriteLine("{0}月份有{1}天", month, days); Console.ReadLine( );
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有