# -*- coding: utf-8 -*- """ Created on Wed Sep 21 18:22:39 2022 @author: vince """ print("Les nombres doivent être supérieurs à 0.01 pour une précision supérieure à deux chiffres significatifs.") a = float(input("Entrer le coté a : ")) b = float(input("Entrer le coté b : ")) c = float(input("Entrer le coté c : ")) if a > b and a > c : max = a d1 = b d2 = c elif b > a and b > c : max = b d1 = a d2 = c else : max = c d1 = b d2 = a if round(max ** 2,4) == round(d1 **2 + d2 ** 2,4) : print("Le triangle est rectangle !") else : print("Non, le triangle n'est pas rectangle.")