Question: Write a program that checks whether a triangle is perfect. A triangle is perfect if its shortest side length is 3x, its middle side
Write a program that checks whether a triangle is perfect. A triangle is perfect if its shortest side length is 3x, its middle side length is 4x and its longest side length is 5x, where x is the same integer. The program should prompt for the side lengths in the order: shortest, middle, and longest. It should use the guess and check approach.
Step by Step Solution
3.41 Rating (151 Votes )
There are 3 Steps involved in it
Sure here is the code This program checks whether a triangle is perfect A ... View full answer
Get step-by-step solutions from verified subject matter experts
