Write a function to compute the hypotenuse given sides a and b of the triangle. function format: double hypotenuse(double a, double y)
Answers
Answered by
0
THIS IS IN BLUEJ :
public double hypotenuse(double a, double b)
{
double hyp = Math.sqrt (a* a+ b*b);
return hyp;
}
public double hypotenuse(double a, double b)
{
double hyp = Math.sqrt (a* a+ b*b);
return hyp;
}
Similar questions
Psychology,
8 months ago
Geography,
8 months ago
Math,
8 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago