Computer Science, asked by divyajyotisarangi, 6 months ago

Write a program in Java to calculate and display the hypotenuse of a Right - Angled Triangle by taking perpendicular and base as inputs.

Answers

Answered by bhattumesh97
6

class hypotenus

{

public static void main (double perpendicular double base)

{

double hypotenus = 0.0d;

h^2=p^2 + b^2;

system.out.println ("Hypotenus "+ hypotenus);

}

}

Similar questions