# Program to find square root of a given number
a=input("Enter the number:")
a=float(a)
if a>=0:
from math import*
print("The square root of entered number is:",sqrt(a))
else:
from cmath import*
print("The square root of entered number is:",sqrt(a))
a=input("Enter the number:")
a=float(a)
if a>=0:
from math import*
print("The square root of entered number is:",sqrt(a))
else:
from cmath import*
print("The square root of entered number is:",sqrt(a))
Comments
Post a Comment