C语言课后习题答案-第四版-_谭浩强.doc

C语言课后习题答案-第四版-_谭浩强.doc

C语言课后习题答案-第四版- 谭浩强 第一章 #include stdio.h int main ( ) { printf (**************************\n\n); printf( Very Good!\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章 1.#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; } 2. #include stdio.h #include math.h int main() {float r5,r3,r2,

文档评论(0)

1亿VIP精品文档

相关文档