Suppose a, b and c are the lengths of the 3 sides of a triangle. Write an if-statement that will determine if the triangle is isosceles (at least 2 of the 3 sides are equal). You may assume that a, b and c are of type int.

What will be an ideal response?

if (a == b || a == c || b == c)
System.out.println(“isosceles triangle”);

Computer Science & Information Technology

You might also like to view...

Why is Linux popular? Why is it popular in academia?

What will be an ideal response?

Computer Science & Information Technology

Which of the following is the path to the Object button?

A. (DESIGN tab | Text group) B. (INSERT tab | Images group) C. (VIEW tab | Objects group) D. (INSERT tab | Text group)

Computer Science & Information Technology