1.有数组a,a[i+1]=a[i]/(i+1);
2.有数组b,b[i+1]=b[i]+a[i+1];
3.输出b[49];
#include <iostream>
using namespace std;
int main(void){
double a[50],b[50];
a[0]=b[0]=1;
for(int i=0;i<50;i++){
a[i+1]=a[i]/(i+1);
b[i+1]=b[i]+a[i+1];
}
cout<<"和为:"<<b[49]-b[0];
return 0;
}
标签:int,多项式,50,36,数组,day From: https://www.cnblogs.com/drz1145141919810/p/17425251.html