char table[10][10]; int i; for(i=0;i<10;i++) printf("%c|-\n", table[0][i]); int j; for(j=0;i<10;j++) printf("%c-|\n", table[i][i]);