Menu
Question Index
...

Find the square of the hypotenuse. while given the sides of a rightangled triangle.

Input Output
base = 3.0 height = 4.0 square of the hypotenuse = 25.0
base = 0.3 height = 0.7 square of the hypotenuse = 0.58
base = 5.0 height = 10.0 square of the hypotenuse = 125.0



class ClassHypotenuseOperation
{
    public static void main(String s[])
    {
        double squareOfHypotenuse = calculateHypotenuseValue(5.0, 7.0);
        System.out.println("The square of hypotenuse of the right angled triangle is  " + squareOfHypotenuse);

    }


        public static double calculateHypotenuseValue(double base, double height)
        {
        }

}
    

Doubts

Problems

Topic: Basic Arithmetic Operators In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App