recurs

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
233 B
8
Indexable
Never
#include <bits/stdc++.h>

using namespace std;

long double f(long double n)
{
    if(n==***) return ***(2.0);
     else return sqrt(2.0+f(***));
}

int main()
{
    long long n;
    cin>>n;
    cout<<fixed<<setprecision(9)<<f(n);
}