摘要: 1.输出hello wo public void print() 2.加法运算 3.判断质数 4.判断体重是否正常 5.冒泡排序 阅读全文
posted @ 2016-04-06 15:41 凌零聆 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1.身份证号中截取出生年月日出来 2.从目标字符串中截取第二个匹配的字符段出来,要求字符串中至少包含两个以上的字符段 阅读全文
posted @ 2016-04-05 14:24 凌零聆 阅读(157) 评论(0) 推荐(0) 编辑
摘要: int[] shuzu = new int[3] { 3, 5, 7 }; int[,] arr = new int[2, 3]; { {1;3;5}; //[0,0] [0,1] [0,2] {2;4;6} //[1,0] [1,1] [1,... 阅读全文
posted @ 2016-04-05 10:28 凌零聆 阅读(134) 评论(0) 推荐(0) 编辑
摘要: while (true) { Console.WriteLine("请输入你预测的中奖号码:"); int sum = 0; int a1 = int.Parse(Console.ReadLine()); int a2 =... 阅读全文
posted @ 2016-04-05 10:26 凌零聆 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1.输入10个人分数,求最高分,按分数从高到低排序 2.输入10个人分数,去除最高分最低分,求平均分 阅读全文
posted @ 2016-04-01 08:50 凌零聆 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑