Program doesn't just close?In the while loop, at the end of each " if " statement, you can write " break; ".
This user does not accept Private Messages