C语言程序设计(谭浩强)第四版_课后答案(108页).doc

C语言程序设计(谭浩强)第四版_课后答案(108页).doc

C语言程序设计(谭浩强)第四版_课后答案(108页)

第一章 程序设计和C语言 【第15页】 1-5 #include stdio.h int main ( ) { printf (**************************\n\n); printf( Very Good!\n\n); printf (**************************\n); return 0; } 1-6 #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; } 第2章算法——程序的灵魂 【第36页】暂无答案 第3章最简单的C程序设计——顺序程序设计 【第82页】 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; }

文档评论(0)

1亿VIP精品文档

相关文档