2012年11月20日

摘要: 首先我先描述下推理问题:有A、B、C三个人,其中A年龄中的两个数字与B年龄的两个数字顺序相反,C年龄的2倍是A与B年龄之差,且C年龄的10倍是B的年龄。求A、B、C的年龄。(C的年龄姑且可用半岁)public static double i, j, k, m, n; static void Main(string[] args) { for (i = 0; i <= 9; i++) { for (j = 0; j <= 9; j++) { //if(55*j==44*i) // { // n=10*j+i; // Console .WriteLine(n); //结果为0 和 45 阅读全文
posted @ 2012-11-20 16:01 重新开始js 阅读(152) 评论(0) 推荐(0) 编辑
摘要: str1 = "abcdefghijklmnopq";str2 = "goodgoodxyz";最简单的做法:public static string str1 = "abcdefghigklmnopqg",str2 = "goodgoodxyz"; public static int i, j,temp=0; static void Main(string[] args) { for(i=0;i<str2.Length;i++)//外边放str2 { for(j=0;j<str1.Length;j++ 阅读全文
posted @ 2012-11-20 15:36 重新开始js 阅读(188) 评论(0) 推荐(0) 编辑

导航