Computer Science, asked by oljj, 1 year ago

wap in Java to calculate and display the hypotenuse of a right angled triangle by taking perpendicular and base as input ​

Answers

Answered by amannishad0512p5zxh6
22

class Hypotenuse

{

    public static void main(double perpendicular,double base)

 {

   double  hypotenuse=0.0d;

   hypotenuse^2=perpendicular^2+base^2;

 System.out.println("Hypotenuse "+hypotenuse);

}

}

Mark me brainlest@

I am 1st to answer.

Follow me for more java doubts.

Answered by pravalika12612
12

Explanation:

this is the ans...for this question . this is using scanner class...plz like

Attachments:
Similar questions