Главная » 2017 » Октябрь » 9 » 3_5
09:31
3_5

#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    setlocale(LC_ALL,"rus_rus.1251");
    double s=0;
    int n;
    cin>>n;
    for (int i=1;i<=n;i++)
    {
        s=sqrt(2+s);
    }
    cout<<"S="<<s<<endl;
    system("pause");
    return 0;
}

Просмотров: 355 | Добавил: denjes | Рейтинг: 0.0/0
Всего комментариев: 0
avatar