20 lines
201 B
C
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;
|
|
}
|
|
|