Ask a New Question

Question

producea java program which when given 3 sides of a triangle determines whether the traingle is an equilateral an issosceles or a scaline
12 years ago

Answers

Steve
assuming appropriate setup for a,b,c:
if (a == b) {if (a==c) {equilateral} else {isosceles}
} else if (a==c) {if (b==c) {isosceles}
} else if (b==c) {isosceles}
else {scalene}
12 years ago

Related Questions

Java program which allows the user to enter data for one competitor and display the data. The ou... I did this java program. In this exercise, you will be writing a simple java program to explore the... I did this java program, i just want someone to correct it. In this exercise, you will be writing a... Develop a Java program that simulates a weather station giving personalized clothing recommendations... Write a program in java that will be able to print out the duplicates of names.public class duplicat... Write a program in java that will be able to print out the duplicates of names. Public class duplic... Write a program in java using methods that is able to multiply two numbers. Use the following numbe... Write a program in java using methods that is able to subtract two numbers. First number 100 Secon... Write a program in java that will be able to print out the duplicates of names.
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use