Question: (Triangle.java) Write a program that reads three edges (sides) for a triangle and classify it as Equilateral, Scalene, Isosceles if the input is valid. The

 (Triangle.java) Write a program that reads three edges (sides) for a

(Triangle.java) Write a program that reads three edges (sides) for a triangle and classify it as Equilateral, Scalene, Isosceles if the input is valid. The input is valid if the sum of every pair of two edges is greater than the remaining edge. You may assume that the user inputs a positive value for the edges. Here is a sample run. Side 1:3 Side 2:3 Side3:9 Output: Invalid input! Side 1:3 Side 2:3 Side 3:3 Output: Eauilateral

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!