Lab 13: Exercise: Total 100 Marks
Lab 13: Exercise: Total 100 Marks
Write two functions named as addition and subtraction used to add and subtract two 3x3 arrays. The
functions should also have the capability of printing the resultant arrays in the same form depicted
above. Test the functions in main afterwards.
1) Create a printer function that prints out the content of the array. Your output should look like
this.
2) After that take in x and y coordinates (starts from 0 till 2) and store the cross or knot in the
appropriate index of the array.
3) Keep switching between knots and cross as the game goes on.
You do not need to provide a check for whether a player wins the game and you can assume that user
inputs only the correct coordinates.