NOJ/64/main.c

16 lines
353 B
C
Raw Permalink Normal View History

2020-08-31 16:46:43 +00:00
#include <stdio.h>
#include <string.h>
int main(void){
char string[1024];
gets(string);
int len = strlen(string), i;
for(i = 0; i < len; i++){
if(string[i] >= 'a' && string[i] <= 'z') printf("%c",string[i]-3);
else if(string[i] >= 'A' && string[i] <= 'Z') printf("%c",string[i]+3);
else printf("%c",string[i]);
}
printf("\n");
return 0;
}