问题:
[单选题]通过while循环不断读入字符,当读入字母N时结束循环。以下正确的程序段是( )。
Awhile((ch=getchar())!='N') printf(“%c”,ch);
Bwhile(ch=getchar()!='N') printf(“%c”,ch);
Cwhile(ch=getchar()==N') printf(“%c”,ch);
Dwhile((ch=getchar())=='N') printf(“%c”,ch);
Copyright © 2024 www.daanwo.com All Rights Reserved |