/* while.c */ #include int main(void) { char c; scanf("%c",&c); while(c!='q') scanf("%c",&c); printf("qが入力されました\n"); return 0; }