习题2—7
来源:互联网 发布:上海行知教育正规吗 编辑:程序博客网 时间:2024/05/17 03:28
#include<stdio.h>
int main()
{
char a,b;
scanf("%c,%c",&a,&b);
getchar();
if((a-b)%2==0)
{
if(a>b)
{
printf("%c\n",(a+1));
}
else
{
printf("%c\n",(b+1));
}
}
else
{
if(a>b)
{
printf("%c\n",(b-1));
}
else
{
printf("%c\n",(a-1));
}
}
return 0;
}
0 0
- 习题2—7
- 习题2-7
- 习题2-7
- 习题2—11
- 习题2—1
- 习题2—3
- 习题2—6
- 习题2—4
- 习题2—8
- 习题2—9
- 习题2—10
- 习题2—12
- 习题2—13
- 习题2—14
- 习题2—19
- 习题2—15
- 习题2—16
- 习题2—17
- Canny边缘检测算法原理及其VC实现详解(一)
- 一些老版本的DEMO经常会出现的错误(ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker c)
- js jq 选择器大杂烩
- 可重入函数与不可重入函数(转)
- Longest Common Prefix
- 习题2—7
- 趣学设计模式前章
- 如何在Android中使用OpenCV
- python Queue
- shell脚本http://www.92csz.com/study/linux/12.htm
- C#+ICSharpCode.SharpZipLib.dll实现压缩解压缩功能
- 怎么搜索局域网内IPCamera设备的IP、Port等信息,用C#\UDP怎么实现?
- iOS应用安全Part37:应用到iOS8
- p51 7.字符差偶数