摘要: int a=1,b=0,c=0,sum = 0;//a 幼兔对数,b 小兔对数,c 成兔对数,sum 总对数 for (int i = 1; i <=24; i++) { if (i == 1) { a = 1; ... 阅读全文
posted @ 2016-03-31 22:28 凌零聆 阅读(649) 评论(0) 推荐(0) 编辑
摘要: for (int i = 1; i <= 6; i++) { for (int a = 1; a <= i; a++) { Console.Write("☆"); } for (... 阅读全文
posted @ 2016-03-31 22:27 凌零聆 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("牙膏5元,牙刷2元,肥皂3元,100元买这三种恰好花光"); int a1 = 0, b1 = 0, c1 = 0, sum = 0; for (int a = 0; a <= 20; a++) { a1 = 5 * a; ... 阅读全文
posted @ 2016-03-31 22:26 凌零聆 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1.输入一个数判断是否是质数 2.打印1-100之内所有质数 3.求1-100之内所有质数的和 阅读全文
posted @ 2016-03-31 22:25 凌零聆 阅读(256) 评论(0) 推荐(1) 编辑
摘要: while (true) { Console.WriteLine("请输入一个数n:"); int n = int.Parse(Console.ReadLine()); int sum = 0; for (int i = 1... 阅读全文
posted @ 2016-03-31 22:25 凌零聆 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 1.求1-100的和 2.输入一个数n,打印1-n出来 3.求1-100以内所有偶数的和 阅读全文
posted @ 2016-03-31 22:20 凌零聆 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 1. 2. 阅读全文
posted @ 2016-03-31 22:16 凌零聆 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.输入姓名、成绩,输出级别 80-100 优秀,60-79 一般,0-59 继续努力 2.输入一元二次方程的三个参数,判断方程有无实根 阅读全文
posted @ 2016-03-31 22:14 凌零聆 阅读(267) 评论(0) 推荐(0) 编辑
摘要: while (true) { Console.Write("请输入年份:"); int a = int.Parse(Console.ReadLine()); Console.Write("请输入月份:"); int b = int.Parse(... 阅读全文
posted @ 2016-03-31 22:11 凌零聆 阅读(747) 评论(0) 推荐(0) 编辑
摘要: while (true) { Console.WriteLine("姓名"); Console.ReadLine(); Console.WriteLine("性别"); string a = Console.ReadLine(); ... 阅读全文
posted @ 2016-03-31 22:10 凌零聆 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1.判断一个数是几位数 2.输入1-7判断星期几 阅读全文
posted @ 2016-03-31 22:08 凌零聆 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 1.24小时换算成12小时 2.判断正负数 阅读全文
posted @ 2016-03-31 21:47 凌零聆 阅读(219) 评论(0) 推荐(0) 编辑