1/4+1/(4*7)+1/(7*10)+1/(10*13)+...+1/(3n-2)*(3n+1)

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 01:39:20
1/4+1/(4*7)+1/(7*10)+1/(10*13)+...+1/(3n-2)*(3n+1)1/4+1/(4*7)+1/(7*10)+1/(10*13)+...+1/(3n-2)*(3n+1)

1/4+1/(4*7)+1/(7*10)+1/(10*13)+...+1/(3n-2)*(3n+1)
1/4+1/(4*7)+1/(7*10)+1/(10*13)+...+1/(3n-2)*(3n+1)

1/4+1/(4*7)+1/(7*10)+1/(10*13)+...+1/(3n-2)*(3n+1)
#include
void main()
{int int xp(int),i,n,sum;
scanf("%d",&n);
sum=int xp(n);
printf("sum=%d",sum);
}
void main(int n)
{double i;
for(i=1;i