oc中的杨辉三角形
-(void)printYangHuiTriangle:(int)n
{
int i,j=0;
int num,nun;
int a[20]={0,1};
for (i=1; i<=n; i++) {
num=0;
for (j=1; j<=i; j++) {
nun=a[j];
a[j]=num+nun;
num=nun;
printf("%5d",a[j]);
}
printf("\n");
}