Hello guys i have trouble printing tic tac toe display board.I am using putty to connect to my uni computers which run debian.
Code:
printf("\n");
printf(" %c | %c | %c\n", a[0][0], a[0][1], a[0][2]);
printf("---+---+---\n");
printf(" %c | %c | %c\n", a[1][0], a[1][1], a[1][2]);
printf("---+---+---\n");
printf(" %c | %c | %c\n", a[2][0], a[2][1], a[2][2]);
This is the way i use to print(the array includes 'X' and 'O' and in codeblocks it works the way i want but on terminal it doesnt.Any help appreciated.