#include<stdio.h>#include<string.h>int main(void){ char a[10]; int i; gets(a);//输入字符串 for(i=0;i < strlen(a);i++)//strlen(a),得到字符串的长度 a[i] = a[i] + 3; printf("%s",a);//输出字符串 getchar(); return 0;}
#include"stdio.h";#include"stdlib.h";main(){ char ar,ad; scanf("%c",&ar); ad=ar+3; printf("%c",ad); system("pause");}