#include <stdio.h>
#include <string.h>
int main() {
char text[100];
fgets(text,100,stdin);
/*abcdefghijklmnopqrstuvwxyz*/
for (int i = 0; text[i] != '\0'; i++) {
if ((text[i] >= 'A' && text[i] <= 'Z' ) || (text[i] >= 'a' && text[i] <= 'z') ) {
if ((text[i] >= 'a' && text[i] < 'w' ) || (text[i] >= 'A' && text[i] < 'W')) {
text[i] += 4;
} else {
text[i] -= 22;
}
}
}
printf("%s", text);
return 0;
}
C语言电文加密
最新推荐文章于 2023-12-02 17:00:54 发布