Write a Java Program to find and display the hypotenuse of a right-angled triangle by taking perpendicular and base as inputs. Where h= √2 + 2 h=hypotenuse, p=perpendicular, b=base
Answers
Answered by
2
Answer:
import java.util.Scanner; for input and java.lang.Math; for math operation like square root I have provided both program and output of program
Attachments:
Similar questions