| Subroutine | Purpose |
|---|---|
| getTile(row, column) | Returns the number of the tile on the board in position (row, column). |
The blank space on a board is represented by 0. Figure 18 and Figure 19 show example boards.
| row \ column | 0 | 1 | 2 |
|---|---|---|---|
| 0 | 5 | 2 | 0 (blank) |
| 1 | 1 | 3 | 4 |
| 2 | 6 | 7 | 8 |
| row \ column | 0 | 1 | 2 |
|---|---|---|---|
| 0 | 2 | 3 | 4 |
| 1 | 5 | 1 | 0 (blank) |
| 2 | 7 | 8 | 6 |
For the board in Figure 18, the program would display No. For the board in Figure 19, the program would display Yes.
Write a C# program to check that, in the first row, the second tile number is one more than the first and the third tile number is one more than the second. Display Yes when both conditions are met and No otherwise. You must use getTile. Use meaningful variable name(s) and C# syntax.
Your answer