Then you sound like you want a
while(not good input and not quit input) print a message to have them re-enter their choice, and get that new input inside the while loop.
Type: Posts; User: Adak
Then you sound like you want a
while(not good input and not quit input) print a message to have them re-enter their choice, and get that new input inside the while loop.
Well, for once, I wasn't the slowest fingers in the bunch! :cool: We'll have to up our keyboarding rate to catch "fast fingers" Tim, though. ;)
So after the user enters exitsw,
exitsw=tolower(exitsw)
if(exitsw != 'y' && exitsw != 'q') exitsw='y' and print your message to enter y or q, and let the loop iterate around.
I would be...