import math a = float(input("Первый катет: ")) b = float(input("Второй катет: ")) c = math.sqrt(a**2 + b**2) print('Гипотенуза равна', c)