标签:stat out col else java oid div ring demo
public class Demo { public static void main(String[] args) { int row=8; int colum=8; int[][] a=new int[row][colum]; for(int i=0;i<row;i++) { for(int j=0;j<i;j++) { if(j==0||i==j) a[i][j]=1; else a[i][j]=a[i-1][j]+a[i-1][j-1]; System.out.print(a[i][j]+" "); } System.out.println(); } } }
标签:stat out col else java oid div ring demo
原文地址:https://www.cnblogs.com/zdcn/p/9248709.html