快捷导航

我写的为什么死循环?

#include"stdio.h"#include"math.h"fun(double x,double n){    double a,b,c,d,e,g,h,i,j;    double sum=1,0,f;    d=1,a=2,e=2,b=1;    for(;d

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员2

#include"stdio.h"#include"math.h"doublefun(doublex,doublen)//注意返回值类型{        doublea,b,c,d,e,g,h,i,j;        doublesum=1.0,f;        d=1,a=2,e=2,b=1;        for(;d
回复

使用道具 举报

#include"stdio.h"#include"math.h"/***        (1*x^0)/1!+-1*x^2/2!+...+[-1^(n-1)]*[x^2*(n-1)]/n!**/doublefun(doublex,doublen){        doublea,b,c,d,e,g,h,i,j;        doublesum=1.0,f;        d=1,a=2,e=2,b=1;        for(;d
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP