标签:static ati int class stat [] print bsp oid
public class YangHui {
public static void main(String args[]){
int a[][]=new int[6][6];
int i,j ;
for(i=0;i<6;i++){
for(j=0;j<6;j++){
a[i][0]=1;
a[i][i]=1;
}
}
for(i=1;i<6;i++){
for(j=1;j<i;j++)
a[i][j]=a[i-1][j-1]+a[i-1][j];
}
for(i=0;i<6;i++){
for(j=0;j<6;j++)
System.out.print(a[i][j]+" ");
System.out.println();
}
}
}
标签:static ati int class stat [] print bsp oid
原文地址:http://www.cnblogs.com/FJM02/p/6629436.html