H = float(input("Enter the value of H : ")) L = float(input("Enter the value of L : ")) x = ((L*L) - (H*H)) / (2*H) print("Depth of lake at A is : ", x)