标签:ring oid ati main print str ack stat [1]
package 杨;
public class AS {
public static void main(String[] args){
int a[][];int i,j;
a=new int[4][];
a[0]=new int[1];
for(i=0;i<4;i++){
a[i]=new int[i+1];
a[i][0]=1;
a[i][i]=1;}
for(i=2;i<=4;i++){
for(j=1;j<i;j++)
a[i][j]=a[i-1][j-1]+a[i-1][j];}
for(i=0;i<=4;i++)
for(j=0;j<i;j++)
System.out.print(a[i][j]);
System.out.println();
}
}
标签:ring oid ati main print str ack stat [1]
原文地址:http://www.cnblogs.com/xiejinhuaqqcom123/p/6624461.html