I have writen this code here:
as I know, continue will bring me to the next cycle of the most outer while loop. But I can still hear the beep sound after pressing "enter", counld someone help?
Code:
while (ch=getchar()!=EOF)
{
if(ch=='\n'||ch==' ')
continue;
else
{
counter1=0;
while(counter1<=1000)
{
counter=0;
while(counter<=1000000)
{
counter++;
}
counter1++;
}
printf("\a");
count++;
}
}