C语言教材习题.docxVIP

  • 5
  • 0
  • 约1.52万字
  • 约 33页
  • 2019-09-14 发布于广东
  • 举报
课后习题 #include stdio.h #incl ude stdlib.h #includemath.h int main() { float d,p,r,n,i,m; scanf(%f %f %fzd,p,r); 讦(d!=0) { n=log(p/(p-d*r)); i=log(l+r); m=n/i; if(m0) printf(%.lf,m); else printfCGod); } if(d==O) printf(0.0); return 0; #include stdio.h #include stdlib.h int main() { float x,y; scant (” %f”,x); if(xl) y=x; else if(x10) y=2*x-l; else y=3*x-ll; printf(%.2f\nHzy); return 0; #include stdio.h #include stdlib.h int main() { int a,b,c,max; scant (%d%d%d,a,b,c); max=a; if(bmax) max=b; if (cmax) max=c; printf(%d\n,max); return 0; } #include stdio.h #include stdlib.h int main() { int a; sc

文档评论(0)

1亿VIP精品文档

相关文档