(完整word版)c程序设计(第四版)谭浩强-课后答案(完整版).pdf(2).docx

(完整word版)c程序设计(第四版)谭浩强-课后答案(完整版).pdf(2).docx

{float r5,r3,r2,r1,r0,p,p1,p2,p3,p4,p5; {float r5,r3,r2,r1,r0,p,p1,p2,p3,p4,p5; C 语言课后习题答案 -第四版 - 谭浩强 (1-7 ) 第一章 #include stdio.h int main ( ) printf**\n\n); printf printf( Very Good!\n\n); **\n);printf ( **\n); return 0; #include stdio.h int main() {int a,b,c,max; printf(please input a,b,c:\n); scanf(%d,%d,%d,a,b,c); max=a; if (maxb) max=b; if (maxc) max=c; printf(The largest number is %d\n,max); return 0; } 第3章 #include stdio.h #include math.h int main() {float p,r,n; r=0.1; n=10; p=pow(1+r,n); printf(p=%f\n,p); return 0; } #include stdio.h #include math.h int main() p=1000; r5=0.0585; r3=0

文档评论(0)

1亿VIP精品文档

相关文档