2025-03-20 10:47:49 +08:00

21 lines
424 B
C

#include <stdio.h>
#define CHANGE 0 //1代表打印密文 0明文
//! Ctrl + .注释
int main(){
char str[100], i=0;
scanf("%s", str);
#if CHANGE
while(str[i] != '\0'){
if(str[i] >= 'a' && str[i] <= 'y' || str[i] >= 'A' && str[i] <= 'Y' ){
str[i]++;
}else if(str[i] == 'z' || str[i] == 'Z'){
str[i]-=25;
}
i++;
}
#endif
puts(str);
return 0;
}