Задача 22
Posted On 01.11.2018
Даны вещественные числа: A, B, C. Определить, выполняются ли неравенства A < B B > C и какое именно неравенство выполняется.
import random A=random.randint(-100,100) print("A= " + str(A)) B=random.randint(-100,100) print("B= " + str(B)) C=random.randint(-100,100) print("C= " + str(C) + "\n") print("A < B B > C""\n") if A<B and BB or B>C: print("The first inequality is fals") if A>B and B>C: print("The second inequality is true") elif A<B or B<C: print("The second inequality is false")