Lab 3: Tic-Tac-Toe

In this week's lab you must write a C program to display a Tic-Tac-Toe board and allow making moves.  You will need to know and use simple input/output in C (using printf and scanf), declaring variables, if statements, arithmetic operations and a loop of some kind.

The execution of the finished program should look like what is shown below.  (User input is shown in bold, though in your program it will not be bold.)

Welcome to Tic-Tac-Toe.

--------------

Board is:

  . . .   1 2 3

  . . .   4 5 6

  . . .   7 8 9

Please enter the destination and character to be placed: 5X

--------------

Board is:

  . . .   1 2 3

  . X .   4 5 6

  . . .   7 8 9

Please enter the destination and character to be placed: 5X

Notes:

Submission: