#include
int main() {
int I = 2;
while (I) {
char b;
scanf("%c", &b);
if (b >= 'A' && b <= 'Z') {
b = b + 32;
printf("%c", b);
} else if (b >= 'a' && b <= 'z') {
b = b - 32;
printf("%c", b);
}
}
return 0;
}
你这while是个死循环啊。没有结束条件啊
到底要输入多少个字符啊?
while(I)
改为
while(I--)
你的I不变,标准死循环