/* HELLO.C -- Hello, world */
#include "stdio.h"
#include "conio.h"
main()
{ int a[10]={1};
int i,j;
for(i=1;i<10;i++)
{for(j=i-1;j>0;j--)
a[j]=a[j]+a[j-1];
for(j=0;j<i;j++)
printf("%d ",a[j]);
printf("\n");
}
getch();
}
liao_shiyong 博主文章分类:C语言
/* HELLO.C -- Hello, world */
#include "stdio.h"
#include "conio.h"
main()
{ int a[10]={1};
int i,j;
for(i=1;i<10;i++)
{for(j=i-1;j>0;j--)
a[j]=a[j]+a[j-1];
for(j=0;j<i;j++)
printf("%d ",a[j]);
printf("\n");
}
getch();
}
上一篇:数组指针与指针数组的区别02
使用Html5/Canvas绘制斜置黄色三角biohazard标志。
使用Html5/Canvas绘制黄色三角电离辐射警示标志
杨(辉)氏矩阵,杨(辉)氏三角问题的解决
正三角和倒三角
【三角】圆角—三角—自适应
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M