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”);
You might also like to view...
Transferring files from a remote computer to your computer is called uploading.
Answer the following statement true (T) or false (F)
A data series is a group of related data
Indicate whether the statement is true or false
Select the best reason to include height and width attributes on an image element
a. they are required attributes and must always be included b. to help the browser render the page faster because it reserves the appropriate space for the image c. to help the browser display the image in its own window d. none of the above
Which of the following creates ciphertext by changing the placement of characters?
A. Transposition cryptography B. Hashing C. Elliptical cryptography D. Digital signatures