write a program in java to input sides of a scalen triangle and calculate area of scalen triangle
Answers
Answered by
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
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
Social Sciences,
3 months ago
Math,
7 months ago
Science,
7 months ago
Social Sciences,
1 year ago
World Languages,
1 year ago