Cowboy Galaxy

Learner

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年2月23日

摘要: using System;namespace ConsoleApplication1{ class Class1 { [STAThread] static void Main(string[] args) { int[,] arr= new int[9,9]; for(int i=1;i<9; i++) { int j=i; for(int k =1 ;k<=j;k++) { if (k==1) { arr[j,k]=1; } else if(k==j) { arr[j,k]=1; } else { arr[j,k] = arr[j-1,k-1] + arr[j-1,k]; } C 阅读全文
posted @ 2011-02-23 20:46 WarLock! 阅读(356) 评论(0) 推荐(0) 编辑