C程序设计(第四)谭浩强课后习题共.docVIP

  • 0
  • 0
  • 约3.55万字
  • 约 50页
  • 2023-04-01 发布于山东
  • 举报
1-5#includestdio.h intmain( ) {printf(**************************\n\n); printf(VeryGood!\n\n); printf(**************************\n); return0; } 1-6#includestdio.h intmain( ) {inta,b,c,max; printf(pleaseinputa,b,c:\n); scanf(%d,%d,%d,a,b,c); max=a; if(maxb) max=b; if(maxc) max=c; printf(Thelargestnumberis%d\n,max); return0; } 3-1#includestdio.h #includemath.h intmain( ) {floatp,r,n; r=0.1; n=10; p=pow(1+r,n); printf(p=%f\n,p); return0; } 3-2-1 #includestdio.h #includemath.h intmain( ) {floatr5,r3,r2,r1,r0,p,p1,p2,p3,p4,p5; p=1000; r5=0.0585; r3=0.054; r2=0.0468; r1=0.0414; r0=0.0072; p1=p*((1+r

文档评论(0)

1亿VIP精品文档

相关文档