#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main()
{
int n;
cout << "Enter n: ";
cin >> n;
float ans = 0;
for (int i = 2*n; i != 0; i -= 2)
ans = sqrt(ans);
ans += i;
}
cout << ans;
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main()
{
int n;
cout << "Enter n: ";
cin >> n;
float ans = 0;
for (int i = 2*n; i != 0; i -= 2)
{
ans = sqrt(ans);
ans += i;
}
ans = sqrt(ans);
cout << ans;
}