Skip to content

Commit 744cae6

Browse files
committed
calculate sqr root
1 parent f37a2cb commit 744cae6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Programs/CalculateSquareRoot.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)