最新二级C(不要传,必须).docVIP

  • 7
  • 0
  • 约8.37万字
  • 约 127页
  • 2016-12-21 发布于贵州
  • 举报
校园网·新视野教育二级C上机考试复习资料 V16.0 (共50套题目) 第1套 校园网·新视野教育上机考试复习资料 1、程序填空题 #include stdio.h #include math.h double fun(double x) { double f, t; int n; f = 1.0 + x; /**********found**********/ t = ____; n = 1; do { n++; /**********found**********/ t *= (-1.0)*x/___n__; f += t; } /**********found**********/ while (___fabs(t)__ = 1e-6); return f; } main() { double x, y; x=2.5; y = fun(x); printf(\nThe result is :\n); printf(x=%-12.6f y=%-12.6f\n, x, y); } 2、程序修改题 校园网·新视野教育上机考试复习资料 #include stdio.h long fun(int x,int y,long

文档评论(0)

1亿VIP精品文档

相关文档