mirror of https://github.com/injetlee/Python.git
parent
94faec41b8
commit
9528279c81
|
@ -0,0 +1,10 @@
|
||||||
|
# Python Program to calculate the square root
|
||||||
|
|
||||||
|
# Note: change this value for a different result
|
||||||
|
num = 8
|
||||||
|
|
||||||
|
# To take the input from the user
|
||||||
|
#num = float(input('Enter a number: '))
|
||||||
|
|
||||||
|
num_sqrt = num ** 0.5
|
||||||
|
print('The square root of %0.3f is %0.3f'%(num ,num_sqrt))
|
Loading…
Reference in New Issue