tks

博客园 首页 联系 订阅 管理

2007年3月12日

摘要: 在1--100的自然数中有99个在一个数组中,怎样找出不在数组中的数;用5050加和办法 static void Main() { Console.WriteLine(UseAr()); } static int UseAr() { int[] aa = new int[]{1,2,... 阅读全文
posted @ 2007-03-12 13:35 特困生 阅读(911) 评论(0) 推荐(0)

摘要: 1,1,2,3,5,8,13,21,34,55,89.....求第30位结果: static void Main() { Console.WriteLine(Fib(30)); } static int Fib(int i) { if (i 0 && i <= 2) ... 阅读全文
posted @ 2007-03-12 12:05 特困生 阅读(317) 评论(0) 推荐(0)