Computer Science, asked by Rahulgenius7997, 1 year ago

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 PrituAgain
0
THIS IS IN BLUEJ :

public double hypotenuse(double a, double b)
{
double hyp = Math.sqrt (a* a+ b*b);
return hyp;
}
Similar questions