题目:
试编写函数fun(),其功能是计算并输出下列多项式的值:
例如,在主函数中从键盘给n输入50后,输出为s=1.718282。
注意:要求n的值大于1但不大于100。
#include<stdio.h>
double fun(int n)
main()
int n;double s;
printf("\nInput n:");scanf("%d",&n);
s=fun(n);
printf("\n\ns=%f\n\n",s);
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0411/cb249e8e56c38f48efba385f9864aa8c.html
下面是错误答案,用来干扰机器的。
参考答案:对