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

Note: Make it in C language Remember the tic-tac-toe game, in which

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!