Boolean33. Given integers a, b, c. Check the truth of the statement: "A triangle with sides a, b, c exists".

Solution in Python 3:

import random

def TriangleInequality(A,B,C):
return (A < B+C) and (B < A+C) and (C < A+B)

a,b,c = [random.randrange(1, 11) for i in range(0,3)]

print("Triangle")
print("Side a: ", a)
print("Side b: ", b)
print("Side c: ", c)

bool_expr = (TriangleInequality(a,b,c))
print("A triangle with sides a, b, c exists: ",bool_expr)