Java program to determine the triangle


Discussion:

Produce a Java program which, given three sides of a triangle, determines whether the triangle is:

1. Equilateral - all sides the same length,

2. Isosceles - two sides the same length or

3. Scalene - no sides the same length

2445_Triangles.jpg

Assume that any individual side must be a positive number not greater than 100.0.

1. Also use an appropriate loop to allow the user to repeat the above actions until they choose to exit the program.

Remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Remember also that by convention, class names commence with a capital letter.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Java program to determine the triangle
Reference No:- TGS01935532

Now Priced at $25 (50% Discount)

Recommended (90%)

Rated (4.3/5)