摘要: Console.WriteLine("请输入性别"); string xb = Console.ReadLine(); Console.WriteLine("请输入身高"); double sg = double.Parse(Console.ReadLine()); Console.Writ... 阅读全文
posted @ 2015-03-01 21:09 百思不得高兴 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("请输入一个年份"); int n; n = Convert.ToInt32(Console.ReadLine()); if (n % 400 == 0 || n % 4 == 0 && n % 100 != 0) { Console.WriteLine("是闰年... 阅读全文
posted @ 2015-03-01 20:58 百思不得高兴 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("请输入三个数"); int a, b, c,jg; a = Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Con... 阅读全文
posted @ 2015-03-01 20:53 百思不得高兴 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-03-01 20:50 百思不得高兴 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 计算器的转换手动转换10转2,转8 转16。2转8 转16模型向外除全取余模型向内展开相加 阅读全文
posted @ 2015-02-27 16:42 百思不得高兴 阅读(102) 评论(0) 推荐(0) 编辑