Howdy. I'm very new to C, so most of my questions will probably be "you dont know that how?!?!" kinds, but I'm trying to learn
What I am trying to do is make it so at the end of the program, it asks the user if he would like to run it again (Y/N).
Here is what I have thought about to make that work. It would obiously be a do loop. Then have getchar read either Y or N and assign Y=1, N=0. After that, have the program read what char was inputed, and either run the loop again, or close the program.
However, I have NO idea how to do that in code. Any help?
Thanks in advanced
What I am trying to do is make it so at the end of the program, it asks the user if he would like to run it again (Y/N).
Here is what I have thought about to make that work. It would obiously be a do loop. Then have getchar read either Y or N and assign Y=1, N=0. After that, have the program read what char was inputed, and either run the loop again, or close the program.
However, I have NO idea how to do that in code. Any help?
Thanks in advanced
Comment