Question: Question in Java (Conditionals) using if, else. 2. Write a program that asks the user to enter the lengths of the three sides of a
Question in Java (Conditionals) using if, else.
2. Write a program that asks the user to enter the lengths of the three sides of a triangle. Use the logical operators to determine and print whether the triangle is equilateral, isosceles or scalene. Be sure to determine if the given lengths are actually the sides of a triangle before indicating the type of triangle. (Remember: The sum of the lengths of any two sides of a triangle must be greater than the length of the third side.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
