Why does my C program keep looping?
I am just starting learning c on my own. I have gone through declaring variables, if/then/else, labels, comments, printf, and scanf functions successfully. I am just learning how to declare and use functions. The program I'm writing is just for practice and means little. It is designed to display some text art on user request and then ask if you want to choose again. I have implemented error correction for choices that are entered incorrectly.
The code is attached because posting gave me a length error.
The issue I am having is within the repeat function or within the yorn label. When the program executes it asks "Would you like to choose again (y/n)?"
No matter what I enter it asks the question again. I originally had else instead of the current if z != and the same results. I have tried y and Y with || and with separate if statements. I cannot seem to solve this issue...
Thanks in advanced.
|