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
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
Social Sciences,
4 months ago
Math,
4 months ago
Math,
8 months ago
Math,
8 months ago
Social Sciences,
1 year ago
Physics,
1 year ago