#include
main()
{
static int a[5][5]={
{1,2,3,4,0},
{2,3,4,0,6},
{3,0,1,7,5},
{0,0,2,4,1},
{8,4,3,2,7}
};
int i,j;
for (i=0;i<5;i++)
for (j=0;j<5;j++)
if (a[j]==0)
break;
printf("%4d",a[j]);
}
printf("\n");
[1] [2]