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

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

第一章程序设计和C语言1-5 #include stdio.hint main ( ){ printf (**************************\n\n); printf( Very Good!\n\n); printf (**************************\n); return 0;}1-6#include stdio.hint 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;}最简单的C程序设计——顺序程序设计3-1 #include stdio.h#include math.hint main(){float p,r,n; r=0.1; n=10; p=pow(1+r,n); printf(p=%f\n,p); return 0;}3-2-1#include stdio.h#include math.hint main(){float r5,r3,r2,r1,r0,p,p1,p2,p3,p4,p5; p

文档评论(0)

1亿VIP精品文档

相关文档