>>232 int a[5][5];
int i,j,cnt;
cnt =1;i=0;
while(i <=4){
j=0;
while(j <= i){
a[i-j][j] = cnt;
cnt++;j++;
}
i++;
}
i=3;
while(i >=0){
j=0;
while(j <= i){
a[4-j][4-i+j] = cnt;
cnt++; j++;
}
i--;
}
i=0;
while(i<5) {
j=0;
while(j<5) {
printf("%d ",a[i][j]);j++;
}
printf("\n");i++;
}