Skip to content

Commit 2af4746

Browse files
committed
square root using exponential operation
1 parent c0ba75a commit 2af4746

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

squareRoot_exponent.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__author__ = 'Avinash'
2+
3+
num = float(input('Enter a number: '))
4+
5+
sqrt = num ** 0.5
6+
print('The square root of %0.3f is %0.3f' % (num, sqrt))

0 commit comments

Comments
 (0)