Write a program that takes lengths of triangle sides as inputs, and output whether our triangle is right-angled or not. If the triangle is right-angled, the program should output "Right-angled", and "Not right-angled" if it's not.
side1 = int(input())
side2 = int(input())
side3 = int(input())
if side1**2+side2**2==side3**2:
print("Right-angled")
else:
("Not right-angled")
Aucun commentaire:
Enregistrer un commentaire