摘要: Console.WriteLine("请输入a"); int a = int.Parse(Console.ReadLine()); Console.WriteLine("请输入b"); int b = int.Parse(Consol... 阅读全文
posted @ 2014-12-13 21:10 ヾBailey灬 阅读(872) 评论(0) 推荐(3)
摘要: int a = int.Parse(Console.ReadLine()); if(a>=1 && a<=100) { if((a%7==0)||(a%10==7)||(a/10==7)) ... 阅读全文
posted @ 2014-12-13 21:09 ヾBailey灬 阅读(509) 评论(0) 推荐(3)
摘要: Console.WriteLine("请输入身高"); int hight = int.Parse(Console.ReadLine()); Console.WriteLine("请输入体重"); int we... 阅读全文
posted @ 2014-12-13 21:08 ヾBailey灬 阅读(928) 评论(0) 推荐(3)
摘要: Console.WriteLine("请输入年"); string year = Console.ReadLine(); int x = int.Parse(year); Console.WriteLine("... 阅读全文
posted @ 2014-12-13 21:06 ヾBailey灬 阅读(373) 评论(0) 推荐(3)
摘要: int a = 1; int b = 0; int c = 0; for (int i = 1; i <= 24; i++) { if (i == 1) ... 阅读全文
posted @ 2014-12-13 21:05 ヾBailey灬 阅读(323) 评论(0) 推荐(3)
摘要: int b = int.Parse(Console.ReadLine()); if (b % 4 == 0 && b % 100 != 0) { Console.WriteLine("是闰年"); } ... 阅读全文
posted @ 2014-12-13 21:05 ヾBailey灬 阅读(105) 评论(0) 推荐(3)
摘要: for (int i = 0; i < 100; i++) { Console.WriteLine("hello world {0}", i); } Console.ReadLine(); 阅读全文
posted @ 2014-12-13 21:04 ヾBailey灬 阅读(108) 评论(0) 推荐(3)
摘要: for (int a = 1; a <= 50; a++) { for (int b = 1; b <= 20; b++) { if (2 * a ... 阅读全文
posted @ 2014-12-13 21:03 ヾBailey灬 阅读(138) 评论(0) 推荐(3)
摘要: String b=Console.ReadLine();int a=int.Parse(b);string s=(a>=1&&a=7&&a<=12)?("下半年"):("请输入正确的日期"));Console.WriteLine(s);Console.ReadLine(); 阅读全文
posted @ 2014-12-13 21:02 ヾBailey灬 阅读(379) 评论(0) 推荐(3)