全部评论 2

  • 
    

    include <iostream>

    include <string>

    include <cstdio>

    include <cmath>

    int main()
    {
    float sum=0.0,t=1.0,s=-1;
    int i=1;
    for (t=1;t>1e-6;i++){
    s=s*(-1);
    t=ts;
    sum+=t;
    t=1.0/(2
    i+1);
    }
    printf("%.3f",sum);
    return 0;
    }

    2024-07-13 来自 上海

    1
  • 你好我是周子集

    2023-09-10 来自 广东

    0

热门讨论