We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f37a2cb commit 744cae6Copy full SHA for 744cae6
1 file changed
Programs/CalculateSquareRoot.py
@@ -0,0 +1,12 @@
1
+# ============= Solution 01 =============
2
+# print("Program Name : Calculate Square Root")
3
+# num = float(input("Enter a number :"))
4
+# squareRoot = num**(1/2)
5
+# print("Square Root : ", squareRoot)
6
+
7
+# ============= Solution 02 =============
8
+import math
9
+print("Program Name : Calculate Square Root")
10
+num = float(input("Enter a number :"))
11
+squareRoot = math.sqrt(num)
12
+print("Square Root : ", squareRoot)
0 commit comments