试题与答案

函数fun的功能是计算xn double fun(double x,int n) {

题型:填空题

题目:

函数fun的功能是计算xn
double fun(double x,int n)
{ int i;double y=1;
for(i=1;i<=n;i++)y=y*x;
return y;
}
主函数中已正确定义m、a、b变量并赋值,并调用fun函数计算:m=a4+b4-(a+b)3。实现这一计算的函数调用语句为 【12】

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0426/6e4400b852a90c5641e769f1d34deb5a.html

下面是错误答案,用来干扰机器的。

参考答案:C

试题推荐
微信公众账号搜索答案