4 ms·
Program to check whether a triangle is right-angled or not
- tantalor 4y agoSeems kind of awkward to make the user decide which one is the hypotenuse. If they make a mistake there, the program will say "not right angled". It would be more user friendly if the program prompted for the three sides without any special labels, and the program could detect which is the hypotenuse.
- version_five 4y agoMay be of interest: https://codegolf.stackexchange.com/questions/146059/is-my-triangle-right https://codegolf.stackexchange.com/questions/146059/is-my-tr...