From cdc209fda66380eaee113396562da92a742ba16d Mon Sep 17 00:00:00 2001 From: SubhalakshmiK Date: Wed, 7 Oct 2020 20:03:12 +0530 Subject: [PATCH] adding Depth_of_lake.py --- Depth_of_lake.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Depth_of_lake.py diff --git a/Depth_of_lake.py b/Depth_of_lake.py new file mode 100644 index 0000000..ac356e2 --- /dev/null +++ b/Depth_of_lake.py @@ -0,0 +1,6 @@ + +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) \ No newline at end of file