From: Adam Shelly Date: 2008-08-20T08:26:57+09:00 Subject: Re: One more Deaf Grandma topic On 8/19/08, Bianca George wrote: > Obviously, I'm working through Chris Pine's Learn to Program, and I'm > having issues with deaf Grandma. I'm new to programming (hence why I'm > reading Learn to Program), and I've gotten as far as getting the program > to recognize when 'BYE' has been entered 3 times in a row. But, for some > reason, it doesn't enter the last loop correctly and give the proper > response once and then stop. Why is this?? Look closely at what happens when bye_count is 2 and you type 'BYE' again. You add 1 to bye_count, then call 'gets', which waits for more input before going through the while loop again.