题目应该是y=1+1/2*2+1/3*3+1/4*4+……+1/n×n吧?这个其实好简单的啊。代码如下:#includeint main(){int x;int n;double y=0.00;printf("请输入数值n:");gets(n);for(x=1;x{y=y+1/x*x;}printf("当n=%d时,1+1/2*2+1/3*3+1/4*4+……+1/n×n=%f",n,y);}
y=kx+b/2煎蛋