- 1
- 0
- 约小于1千字
- 约 5页
- 2018-05-09 发布于河南
- 举报
第2章部分习题参考程序与答案2012
第2章部分习题参考程序与答案 2012-5-20 18:35阅读(64)
赞(1)赞(1)赞(1)赞(1)
转载(19)
分享(7)
评论(1)
复制地址
举报
更多
已经是第一篇 |下一篇:第3章部分习题参...
4题
#include stdio.h
main()
{
int price;
int number;
long sum;
price=32;
number=1023;
sum=(long)price*number;
printf(The sum is %ld\n,sum);
}
第6题
#include stdio.h
main()
{
double cel;
double fah;
printf(Please enter fah: );
scanf(%lf, fah);
cel=5.0/9.0*(fah-32.0);
printf(The fah is %lf\n,cel);
}
第9题
#include stdio.h
main()
{
char upper;
char lower;
printf(Please enter an upper: );
scanf(%c,upper);
lower=upper+(a-A);
printf(The lower is %c\n,lower);
}
第13题
a=1;
b=a++;
结果:a为2,b为1
a=1;
b=--
原创力文档

文档评论(0)