全国计算机二级C机试题库.pdfVIP

  • 8
  • 0
  • 约10.01万字
  • 约 153页
  • 2022-09-23 发布于河北
  • 举报
卜列给定程序中,函数 fun 的功能是 :计算S=f (-n)+f (-n+l)+… +f (0)+f (l)+f (2)+…f (n)的值 例如,当 n 为 5 时,函数值应为 10. 407143o f (x)函数定义如下: f (x) = 请改正程序 中的错误,使它能得 出正确 的结果 注 意 :不要 改动m a in 函数,不得增行或删行,也不得更改程序 的结构 试题程序 : #include stdlib. h Sinclude conio. h #include stdio. h #include math.h /***********

文档评论(0)

1亿VIP精品文档

相关文档