2025-03-18 09:23:10 +08:00

20 lines
201 B
C

#include <stdio.h>
int main(){
char str[] = "AbcDEfg";
char *p = str;
while(*p != '\0'){
if(*p >= 'a' && *p <= 'z'){
*p -= 32;
}else{
*p += 32;
}
p++;
}
puts(str);
return 0;
}