Computer Science, asked by choudharyrishabh114, 7 months ago

write a program in java to input sides of a scalen triangle and calculate area of scalen triangle​

Answers

Answered by Anonymous
3

Area of scalene triangle in Java

Area of any type of triangle can be calculated using the formula, Area = (b*h)/2, where b is the base of the triangle and h is the vertical height. The following diagram shows how to define base and vertical height of a triangle.

Answered by moregorakh5859
1

Answer:

  • Area of scalene triangle in Java
  • import java. util. Scanner;
  • class Xyz.
  • { public static void main(String args[])
  • {
  • Scanner s= new Scanner(System. in);
  • System. out. println("Enter the width of the Triangle:"); double b= s. nextDouble();

Explanation:

hope it will help you

please follow me make me as brainlist

Similar questions