Awesome-Python-Scripts/Depth_of_lake.py

6 lines
154 B
Python
Raw Normal View History

2020-10-07 20:03:12 +05:30
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)