Thanks so much for the quick answer.
After I adjusted my code as you suggested. I get part of the loop but not all. My output is as follows:

You guessed the number
would you like to play again? yes/no yes
You guessed the number
would you like to play again? yes/no yes
You guessed the number
would you like to play again? yes/no yes
You guessed the number
would you like to play again? yes/no no
Thanks for playing

So it is not reading the entire loop. It does not make sense to me why it would only loop back to the bottom of the loop and not where the" do" statement starts.

On a second note. Can you tell me the difference between strcmp() and the strcmpi() and why strcmpi is better? I assume the i means compare integer but I am confused as to why that would be better