#include<stdio.h>
#include<math.h>
double f(double n,double x)
{
if(n==1)
return sqrt(n+x);
else
return sqrt (n+f(n-1,x));
}
int main()
{
double x,n;
scanf("%lf %lf",&x,&n);
printf("%.2lf",f(n,x));
return 0;
}
B2147 求 f(x,n)
最新推荐文章于 2024-07-17 23:24:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)