You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
488 B
19 lines
488 B
1 year ago
|
#include <stdio.h>
|
||
|
|
||
|
void output(int board[9][9]){
|
||
|
int i;
|
||
|
for(i = 0;i < 9 ;i++){
|
||
|
if(i %3 == 0){
|
||
|
printf("|-----------------------|\n");
|
||
|
}
|
||
|
printf("| %d %d %d | %d %d %d | %d %d %d |\n",
|
||
|
board[i][0],board[i][1],board[i][2],board[i][3],board[i][4],board[i][5],board[i][6],board[i][7],board[i][8]);
|
||
|
}
|
||
|
printf("|-----------------------|\n");
|
||
|
}
|
||
|
|
||
|
int main(){
|
||
|
int board[9][9] = {0};
|
||
|
output(board);
|
||
|
return 0;
|
||
|
}
|