Алгоритм помогите составить!

  • На С++ пойдёт?

    #include
    using namespace std;
    int main() {
    double two = 2.0, member = sqrt(two);
    int n;
    cout < < "n?.. "; cin >> n;
    for (--n; n; n--) member = sqrt(two + member);
    cout < < "Result = " << member << endl; cin.get(); cin.get(); return 0; }