#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define C 100
#include <stdio.h>
void decrypt(char *str) {
int i = 0;
while (str[i] != '\0') {
if (str[i] >= 'A' && str[i] <= 'Z') {
str[i] = 'A' + 'Z' - str[i];
} else if (str[i] >= 'a' && str[i] <= 'z') {
str[i] = 'a' + 'z' - str[i];
}
i++;
}
}
int main() {
char str[100];
scanf("%s", str);
decrypt(str);
printf("%s\n", str);
return 0;
}
Problem Description
有一行电文,已按如下规律译成