(22)要求通过while循环不断读入字符,当读入字母N时结束循环,若变量已正确定义以下正确的程序段是( )。
A)while((ch=getchar())!='N') printf("%c",ch);
B)while(ch=getch