int main(void)
{
for(int i=0; i<5; i++)
for(int j=0; i<5; i++)
a[i*5+j] = (i == 4-j || i == j) ? 1 : 0;

return 0;
}