解题思路:
注意事项:
参考代码:
#include<stdio.h>
#include<string.h>
int main()
{
int i;
char a[100];
gets(a);
for(i=0;i<strlen(a);i++)
{
if(a[i]>='A'&&a[i]<'Z'||a[i]>='a'&&a[i]<'y')
{
a[i]=a[i]+1;
}
else if(a[i]=='Z')
{
a[i]='a';
}
else if(a[i]=='z')
{
a[i]='A';
}
}
puts(a);
return 0;
}
0.0分
0 人评分
C语言训练-阿姆斯特朗数 (C语言代码)浏览:850 |
C二级辅导-计负均正 (C语言代码)浏览:508 |
奖学金 (C++代码)浏览:2005 |
Cylinder (C语言描述,蓝桥杯)浏览:1247 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:558 |
1050题解(结构体数组与结构体指针的使用)浏览:1107 |
钟神赛车 (C语言代码)浏览:595 |
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:445 |
最好的,浏览:563 |
小O的图案 (C语言代码)浏览:912 |