#include<stdio.h>
int main(){
char str;
printf("请输入一个大写字母:\n");
scanf("%c",&str);
if(str>65&&str<90){
printf("%c,%c",str-1,str+1);
}
else if(str==65){
printf("没有前面的字母") ;
}
else{
printf("没有后面的字母");
}
return 0;
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交