You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from math import sqrt
|
|
print("Input lengths of shorter triangle sides:")
|
|
a = float(input("a: "))
|
|
b = float(input("b: "))
|
|
|
|
c = sqrt(a**2 + b**2)
|
|
print("The length of the hypotenuse is", c ) |