[求助]刚学数组..大大们请帮下忙谢谢了..
#include "stdio.h"void main()
{
int x,y,mun[10][10]={{1},{1},{1},{1},{1},{1},{1},{1},{1},{1}};
for(x=1;x<10;x++)
{
mun[x][x]=1;
for(x=2;x<10;x++)
{
for(y=1;y<x;y++)
{
mun[x][y]=mun[x-1][y-1]+mun[x-1][y];
for(x=0;x<10;x++)
{
for(y=0 ;y<=x;y++)
printf("%d ",mun[x][y]);
printf("\n");
}
}
}
}
}
打印的是杨辉三角形......请问那里有错误吗??