C程序设计教程课后习题答案吉顺如版0001.docx

C程序设计教程课后习题答案吉顺如版0001.docx

C程序设计教程课后习题答案吉顺如版 第 1 章习题 一、选择题 、A 2、D 3、C 4、D 5、B 6、C 7、C 8、B 9、B 10、A 二、填空题 1 、一,函数 、main( 主) ,main( 主) 3 、编译,目标 4 、.c ,.obj , .exe 、缩进,无影响, /* */ 三、程序分析题 1 、 *****************Very good! ***************** Very good! ***************** a=12,b=5 a=17,b=22 3 、 r= 5.50,s=95.033098 四、编程题 .用 printf() 函数在屏幕上输出自己的班级、学号、姓名。 #includestdio.h void main() { printf( 班级: BX1109\n); printf( 学号: [1**********]1\n); printf( 姓名:王孟荣 \n); } .从键盘输入两个整数,计算它们的和、差、积、商,并在屏幕上输出结果 #include void main() { int x,y,a,b,c; float d; printf(Please Input Two Integers:\n); scanf(%d%d,x,y); a=x+y; b=x-y; c=x*y; d=1.0*x/y; printf(

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档