标签:for void oid print str static i++ ++ ring
public class A {
public static void main(String[] args) {
int i;int j;
int a[][];
a=new int[100][100];
for(i=0;i<10;i++)
for(j=0;j<=i;j++)
{if((i==0)||(j==0)||(j==i))
a[i][j]=1;
else
a[i][j]=a[i-1][j-1]+a[i-1][j];}
for(i=0;i<10;i++)
{
for(j=0;j<=i;j++)
System.out.println(a[i][j]+"\t");
System.out.println();
}
}
}
标签:for void oid print str static i++ ++ ring
原文地址:http://www.cnblogs.com/sdn1229/p/6629508.html