Python
19
Вклад в тег
import random
c=random.randint(1,100)
print(c)
while True:
tru = int(input('Ugadai '))
if tru > c:
print('Neverno menshe')
continue
elif tru < c:
print('neverno bolshe')
continue
else:
print('Molodec verno')
break
import math
a = int(input("Введите A: "))
b = int(input("Введите B: "))
c = int(input("Введите C: "))
x = int(input("Введите X: "))
if x < b:
y = math.log10(abs(a + x)) * math.cos(abs(x ** 3))
elif b <= x and x <= c:
y = math.e ** 1.2 - math.sqrt(abs(a + x))
elif x > c:
y = (math.sqrt(abs(a + x)) ** 1 / 3) / (a - x)
print(y)