Задача 1
a = 15
b = 8
a = a * 3//b
if a > b:
c = 2 * a - 5 * (b + 2)
else:
c = 2 * a + 5 * (b + 2)
print(c)
Задача 2
a = 15
b = 3
a = a * 3 // b
if a > b:
c = a + 5 * b
else:
c = a - 5 * b
print(c)
Задача 3
a = 50
b = 70
b = a - 2 * b
if a < 2 * b:
c = a
else:
c = b
print(c)
Задача 4
a = 12
b = 10
if a != 5:
b = 5
else:
b = -5
if b < 0:
a = -2*b
print(a)
Задча 5
a = 56
b = 12
if a > 1 or a < b:
a -= 5
if a > 1 and a == b:
a += 10
print(a)
Задача 6
a = 20
b = 5
if a > 1 or a < b:
a -= 5
if a > 1 and a == b:
a += 5
print(a)
Задача 7
number = 1000
if number < 1000:
print ( "Скидок нет." )
elif number < 2000:
print ( "Скидка 2%." )
elif number < 5000:
print ( "Скидка 5%." )
else:
print ( "Скидка 10%." )
Задча 8
a = 25
b = 15
c = 35
if a>c and c<b:
print (c)
if a<c and c>b:
print (a)
if a>b or c<a:
print (b)