Question: Note: Make it in C language Remember the tic-tac-toe game, in which 2 players 'X and 'O' are playing the game on a 3x3 square
Note: Make it in C language

Remember the tic-tac-toe game, in which 2 players 'X and 'O' are playing the game on a 3x3 square board and the player having all his marks on horizontal, vertical, or main diagonal is a winner. You are given a square board (3x3 dimension matrix) having Xand 'O in it. Find whether the player Xwins the game or not. "X' won: if any of the horizontal row, vertical column, or main diagonal of the board has all marks 'X' in it. Sample Output Sample Input (Main diagonal is underlined for your reference) Matrix: Player X doesn't win the game Matrix: Player X doesn't win the game. Matrix: Player X wins the game. XXO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
