#include <stdio.h>
#define N 6
main()
{int i,j,a[N][N];
a[0][0]=1;
for(j=1;j<=N;j++)printf(" ");
printf("%4d\n",a[0][0]);
for(i=1;i<N;i++)
{ for(j=1;j<=N-i;j++)printf(" ");
a[i][0]=1;
printf("%4d",a[i][0]);
for(j=1;j<N;j++)
{a[i][j]=a[i-1][j-1]+a[i-1][j];
printf(a[i][j]?"%4d":" ",a[i][j]);
}
printf("\n");
}
}
等腰
/bbs/showimg.asp?BoardID=5&filename=2005-4/2005427111228529.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=5&filename=2005-4/2005427111228529.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
欢迎加入C语言QQ群698156
我们都是菜鸟乃至新手
坚信有一天定能展翅高飞 因为有着努力的决心
衷心盼望你的到来 让我们一起进步