关于while(1)的疑问~
程序代码:#include "stdio.h"
void main()
{
char ch;
while (1)
{
printf("Do you want to continue,press 'Y' or 'N' to chioce\n");
ch=getchar();
if (ch=='Y'||ch=='y')
continue;
if (ch=='N'||ch=='n')
break;
}
}为什么ch为y时,printf出两行"Do you want to continue,press 'Y' or 'N' to chioce\n"?
不解,望大大回答~









