文章
21
粉丝
76
获赞
1
访问
13.2k
#include<string.h>
#include<stdio.h>
int main(void){
char s[105];
gets(s);
int len = strlen(s);
for(int i = 0;i<len;i++){
if(s[i]>='a' && s[i] <='z'){
s[i] = (s[i]+3-'a')%26+'a';
}
if(s[i]>='A' && s[i] <='Z'){
s[i] = (s[i]+3-'A')%26+'A';
}
}
for(int i = 0;i<len;i++){
printf("%c",s[i]);
}
printf("\n");
}
登录后发布评论
暂无评论,来抢沙发