习题4
来源:互联网 发布:怎么加入淘宝全球购 编辑:程序博客网 时间:2024/06/04 19:25
4.1
(1)
#include <stdio.h>#include <stdlib.h>int main(){ char c1='a',c2='b',c3='c'; printf ("a%cb%cc%c\n",c1,c2,c3); return 0;}
(2)
#include <stdio.h>#include <stdlib.h>int main(){ int a=12,b=15; printf("a=%d%%,b=%d%%\n",a,b); return 0;
}
(3)#include <stdio.h>#include <stdlib.h>int main(){ int a,b; scanf("%2d%*2s%2d",&a,&b); printf("%d,%d\n",a,b); return 0;}
4.2
#include <stdio.h>#include <stdlib.h>int main(){ long a,b; float x,y; scanf("%d,%d\n",&a,&b); scanf("% 5.2f,%5.2f\n",&x,&y); printf("a=%d,b=%d\n",a,b); printf("x=%d,y=%d\n",x,y); return 0;}
阅读全文
0 0
- 习题4
- 习题4
- 习题4
- 习题4
- 习题4
- 习题4
- 训练4 习题4
- 习题3-4,计算器
- 第八章习题4
- 课后习题9--4
- 2.1-4习题总结
- 习题1—4
- 习题2—4
- 习题2-4
- 习题1-4
- 改习题2-4
- 习题3-4Uva455
- 训练4 习题6
- HDU
- 阅读HashMap——jdk7时遇到的问题记录
- 数据库索引
- java ImageIO处理
- Jzoj4784 Map
- 习题4
- Node.js入门到企业Web开发中的应用
- 微信模板消息发送
- 创建一个SpringMVC小项目
- 电脑打字究竟对书写习惯产生了多大影响?
- Tablayout简单布局
- Game of Dice GYM101532E
- Curl超时设置
- 添加页面