Files
Reisber 520e22fd19 Загрузил файлы по заданию от 03.02.2026
Файлы называются dop, т.к. эти задания я выполнял в рамках дополнительнего задания на одной из первых пар

Signed-off-by: Reisber <admin@reisber.space>
2026-02-03 13:38:04 +00:00

19 lines
332 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
x = float(input())
a = float(input())
if x < -5:
y = a * (x) * -1 * 2
print(round(y, 3))
elif -5 < x < 1:
modulex = abs(x)
y = a * modulex
print(round(y, 3))
elif x >= 1 and (a - x != 0):
y = 1 / (a - x)
print(round(y, 3))
else:
print("На ноль делить нельзя")