Computer Science, asked by aleeshaaleesha73470, 5 months ago

write a program which uses the Pythagorean to find the hypotenuse of a right - angle triangled
Hint. C=√a²+b²​

Answers

Answered by bhavinagaude38
0

Answer:

write a program which uses the Pythagorean to find the hypotenuse of a right - angle triangled

Hint. C=√a²+b²

Answered by almir19
2

Answer:

Hi,

I am writing the code in python

Explanation:

from math import sqrt

base_input  = input("enter the base of the triangle")

Height_input = input("enter the height of the triangle")

base = int(base_input)

height = int(Height_input)

Hypotenuse = sqrt((base ** 2)+(height ** 2))

print(Hypoteneuse)

hope it helps

Similar questions