
У исполнителя Вычислитель две команды, которым присвоены номера: 1. умножь на 5 2. вычти b(b –
неизвестное натуральное число). Первая из них увеличивает число на экране в 5 раз, вторая уменьшает его на b. Известно, что программа 22112 переводит число 15 в число 18. Определите значение b.

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

Python:
def f(b):
n = 15
n-=b
n-=b
n*=5
n*=5
n-=b
return n
for i in range(1000000):
if f(i) == 18:
print(i)
break
ОтВЕТ: 7



Problem Analysis
The problem states that there are two commands given to the computer: 1. Multiply the number on the screen by 5. 2. Subtract b (an unknown natural number) from the number on the screen.The program 22112 converts the number 15 to the number 18. We need to determine the value of b.
Solution
To solve this problem, we can work backwards from the given output to find the initial number on the screen. Then, we can use the two commands to find the value of b.1. The program converts the number 15 to the number 18. This means that the initial number on the screen was 15. 2. Let's apply the two commands in reverse order to find the value of b.
a. Subtracting b from 18 gives us the initial number on the screen, which is 15. b. Multiplying 15 by 5 gives us the number 75.
So, the equation becomes: 18 - b = 75.
3. Now, we can solve the equation to find the value of b.
Subtracting 18 from both sides of the equation, we get: -b = 75 - 18. Simplifying, we have: -b = 57.
Multiplying both sides of the equation by -1, we get: b = -57.
Answer
The value of b is -57.

Похожие вопросы







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









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