# Exercice 43

a = int(input("Longueur côté 1 :"))
b = int(input("Longueur côté 2 :"))
c = int(input("Longueur côté 3 :"))

# On vérifie que l'inégalité triangulaire est respecté
if a > b + c or b > a + c or c > a + b :
    print("Le triangle n'est pas constructible.")
elif a == b and b == c :
    print("Le triangle est équilatéral.")
elif a == b or a == c or b == c :
    print("Le triangle est isosèle.")
else:
    print("Le triangle est scalène.")
    
# Exercice 44
# Si le triangle est constructible, on teste pour savoir s'il est rectangle
if a <= b + c and b <= a + c and c <= a + b and (a**2 == b**2 + c**2 or b**2 == a**2 + c**2 or c**2 == b**2 + a**2):
    print("Le triangle est rectangle.")
    
# Exercice 45
ax = int(input("Abscisse de A :"))
ay = int(input("Ordonnée de A :"))
bx = int(input("Abscisse de B :"))
by = int(input("Ordonnée de B :"))
cx = int(input("Abscisse de C :"))
cy = int(input("Ordonnée de C :"))

v_ab_x = bx - ax
v_ab_y = by - ay

v_ac_x = cx - ax
v_ac_y = cy - ay

if v_ab_x / v_ac_x == v_ab_y / v_ac_y :
    print("Les points sont alignés.")
else:
    print("Les points ne sont pas alignés.")
    
# Exercice 48
a = int(input("Nombre 1 :"))
b = int(input("Nombre 2 :"))

if a - b >= 0:
    print( "La distance est ", a - b, ".")
else:
    print( "La distance est ", b - a, ".")

# Exercice 49
a = int(input("a ? "))
b = int(input("b ? "))
c = int(input("c ? "))

if c < a and c < b :
    print("Plus petit.")
elif c > a and c > b :
    print("Plus grand.")
elif (c > a and c < b) or (c < a and c > b):
    print ("Entre les deux.")
else:
    print("Rien.")