생활
초보 반복문 중단 오류 확인부탁드려요
#include <stdio.h>
#include <ctype.h>
int main(void)
{
int c, Q = 0;
while ((c = getchar()) != Q)
{
if (isupper(c))
c = tolower(c);
printf("%c", c);
}
return 0;
}
여기서 Q를 입력해도 반복문 중단이 안됩니다.
3개의 답변이 있어요!
생활
#include <stdio.h>
#include <ctype.h>
int main(void)
{
int c, Q = 0;
while ((c = getchar()) != Q)
{
if (isupper(c))
c = tolower(c);
printf("%c", c);
}
return 0;
}
여기서 Q를 입력해도 반복문 중단이 안됩니다.
3개의 답변이 있어요!