x = int(input("Введите число: "))
if x > 0:
y = x
if x <= 0:
y = 1/x
print(y)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
x = int(input("Введите число: "))
if x > 0:
y = x
if x <= 0:
y = 1/x
print(y)