Showing posts with the label Command Line ArgumentShow all

9) Write a Java program to determine whether they form a triangle and whether triangle is equilateral, isosceles or scalene using 3 numbers.

Write a Java program to by considering three positive integer a,b and c and determine whether they can form three sides of a triangle .if yes determine whether triangle is equilateral, isosceles or scalene. Display the message accordingly. import java.lang.Math; class Triangle { public static void main(String args[]…

Read more

8) Write a java program to determine whether they form a triangle and whether triangle is right angle or obtuse or acute using 3 numbers.

Write a java program to by considering three positive integers a,b and c determine whether they can form three sides of a triangle yes determine whether triangle is right angle or obtuse or acute. Display the message accordingly. import java.lang.Math; class RightTriangle { public static void main(String args[]) { i…

Read more