Auto commit

This commit is contained in:
2025-03-18 09:23:10 +08:00
parent 31af716c23
commit a580bebc74
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,19 @@
#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;
}