I am not sure what you meant? well I think the problem has something to do with get line and I am pretty sure the "q" was used. is just that is goes on to the if loop
for example; if I enter "q" when the program is running, it will just display ""The word you entered is unknown." and not go to the end of the do while loop and quit as I am trying to make it do