Originally Posted by
Pettsa
Ok, I got the loop done but.... when I hit 1 the first time, it works well but when the program runs the second, I hit 1 to the second time and it exits the program. I don't know why.
I don't think ity works well when you hit 1 the first time. The vowels counting is incorrect because you don't count them at all, you only print the number of vowels (
count) of the first sentence. You should check again the logic of your program. It should be something like;
do
prompt the user to enter a sentence
count vowels
print #vowels
ask if he wants to continue
while (he wants to continue)