#include<stdio.h>
#include<math.h>
int main()
{
    float x,i;
    scanf("%f",&x);
    double tmp=x,y=x;
    i=2;
    while(tmp>=0.00001)
    {
     tmp=pow(x,i);
     for(int k=1;k<=i;k++)
         tmp=tmp/k;
         y+=tmp;
         i++;    
    }
    printf("%.3f",y);
    return 0;                           
}

 

相关文章:

  • 2021-11-01
  • 2021-09-15
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2018-01-13
猜你喜欢
  • 2021-04-17
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案