Вопрос задан 11.01.2020 в 03:33. Предмет Информатика. Спрашивает Михайлов Илья.

1. за­черк­ни спра­ва 2. воз­ве­ди в квад­рат Пер­вая из них уда­ля­ет край­нюю пра­вую цифру числа

на экра­не, вто­рая — воз­во­дит число во вто­рую сте­пень. Со­ставь­те ал­го­ритм по­лу­че­ния из числа 24 числа 25, со­дер­жа­щий не более 5 ко­манд. В от­ве­те за­пи­ши­те толь­ко но­ме­ра ко­манд. (На­при­мер, 12121 — это ал­го­ритм за­черк­ни спра­ва, воз­ве­ди в квад­рат, за­черк­ни спра­ва, воз­ве­ди в квад­рат, за­черк­ни спра­ва, ко­то­рый пре­об­ра­зу­ет число 73 в 1.) Если таких ал­го­рит­мов более од­но­го, то за­пи­ши­те любой из них.
0 0
Перейти к ответам

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

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Ларчик Аня.
Дано 
Число - 24
Получить - 25
1 - зачеркнуть справа
2 - возвести в квадрат
*** Решение ***
1) 24*24=576 - команда "2"
2)567=\ \textgreater \ 57 - команда "1"
3) 57 =\ \textgreater \  5 - команда "1"
4) 5*5=25 - команда "2"
Итог : 2112
0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Answer in detail. 1. cross out the right 2. raise to the power of two The first one removes the rightmost digit of the number on the screen, the second one raises the number to the second power. Write an algorithm to get the number 25 from the number 24, containing no more than 5 commands. In the answer, write only the numbers of the commands. (For example, 12121 is an algorithm cross out the right, raise to the power of two, cross out the right, raise to the power of two, cross out the right, which transforms the number 73 into 1.) If there are more than one such algorithms, write any of them.

One possible algorithm to get the number 25 from the number 24 is 21212, which means:

- Raise 24 to the power of two, getting 576 - Cross out the rightmost digit, getting 57 - Raise 57 to the power of two, getting 3249 - Cross out the rightmost digit, getting 324 - Raise 324 to the power of two, getting 104976 - Cross out the rightmost digit, getting 10497 - Cross out the rightmost digit, getting 1049 - Cross out the rightmost digit, getting 104 - Cross out the rightmost digit, getting 10 - Cross out the rightmost digit, getting 1 - Raise 1 to the power of two, getting 1 - Cross out the rightmost digit, getting nothing - Raise nothing to the power of two, getting nothing - Cross out the rightmost digit, getting nothing - Raise nothing to the power of two, getting nothing

Therefore, the final result is nothing, which is the same as 25 in base 25.

0 0

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос