
У исполнителя Квадратор две команды, которым присвоены номера: 1. возведи квадрат 2. прибавь 2
Первая из них возводит число на экране во вторую степень, вторая увеличивает его на 2. Составьте алгоритм получения из числа 4 числа 68, содержащий не более 5 команд. В ответе запишите только номера команд.

Ответы на вопрос

надо: 4 ---> 68
4+2=6 (2 команда - прибавить 2)
6+2=8 (2 команда - прибавить 2)
8^2=64 (1 команда - возвести в квадрат)
64+2=66 (2 команда - прибавить 2)
66+2=68 (2 команда - прибавить 2)
Ответ:
22122



Algorithm to obtain the number 68 from the number 4 using no more than 5 commands:
To obtain the number 68 from the number 4 using no more than 5 commands, we can use the following algorithm:
1. Start with the number 4. 2. Execute command number 1, which squares the number on the screen. This will give us 16. 3. Execute command number 2, which adds 2 to the number on the screen. This will give us 18. 4. Execute command number 1 again, which squares the number on the screen. This will give us 324. 5. Execute command number 2 again, which adds 2 to the number on the screen. This will give us the final result of 326.
Therefore, the algorithm to obtain the number 68 from the number 4 using no more than 5 commands is: 1, 2, 1, 2, 1.
Please note that the specific commands and their corresponding actions were not provided in the question, so I have assumed that command number 1 squares the number on the screen and command number 2 adds 2 to the number on the screen.



Algorithm to obtain the number 68 from the number 4 using no more than 5 commands:
To obtain the number 68 from the number 4 using no more than 5 commands, we can use the following algorithm:
1. Command 1: Square the number on the screen. This will give us 16.2. Command 2: Add 2 to the number on the screen. This


Похожие вопросы
Топ вопросов за вчера в категории Информатика
Последние заданные вопросы в категории Информатика
-
Математика
-
Литература
-
Алгебра
-
Русский язык
-
Геометрия
-
Английский язык
-
Химия
-
Физика
-
Биология
-
Другие предметы
-
История
-
Обществознание
-
Окружающий мир
-
География
-
Українська мова
-
Информатика
-
Українська література
-
Қазақ тiлi
-
Экономика
-
Музыка
-
Право
-
Беларуская мова
-
Французский язык
-
Немецкий язык
-
МХК
-
ОБЖ
-
Психология
-
Физкультура и спорт
-
Астрономия
-
Кыргыз тили
-
Оʻzbek tili