Эльдар
Эльдар

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

Макс Стрельченко
Макс Стрельченко

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

#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;
}

Sahib Abidov91
Sahib Abidov91

"Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!"
He took his vorpal sword in hand:
Long time the manxome foe he sought --
So rested he by the Tumtum tree,
And stood awhile in thought.
And, as in uffish thought he stood,
The Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood,
And burbled as it came!
One, two! One, two! And through and through
The vorpal blade went snicker-snack!
He left it dead, and with its head
He went galumphing back.
"And, has thou slain the Jabberwock?
Come to my arms, my beamish boy!
O frabjous day! Callooh! Callay!'
He chortled in his joy.

`Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.

Littleking
Littleking

Да поможет тебе Рекурсия! Аминь.

Похожие вопросы
Помогите, пожалуйста, составить алгоритм для программы
помогите составить алгоритм в паскале по задаче :
Составить алгоритмы и программы для заполнения :
Помогите составить алгоритм в C++
Составить алгоритм нахождения у
Помогите пожалуйста составить блок-схему алгоритма
Пожалуйста, помогите составить алгоритм к задаче:
составить алгоритм проверки числа на отчетность. составить алгоритм проверки числа на отчетность
Помогите составить алгоритм программы !!!Срочно необходимо.
Как составить постановку и алгоритм в Pascal?