摘要:
Console.WriteLine("请输入性别"); string xb = Console.ReadLine(); Console.WriteLine("请输入身高"); double sg = double.Parse(Console.ReadLine()); Console.Writ... 阅读全文
摘要:
Console.WriteLine("请输入一个年份"); int n; n = Convert.ToInt32(Console.ReadLine()); if (n % 400 == 0 || n % 4 == 0 && n % 100 != 0) { Console.WriteLine("是闰年... 阅读全文
摘要:
Console.WriteLine("请输入三个数"); int a, b, c,jg; a = Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Con... 阅读全文
摘要:
Random r = new Random(); string x, y; int a = r.Next(0,3); int b = r.Next(0, 3); switch(a) { case 0: x="剪刀"; break; case 1: x="石头"; break; c... 阅读全文