# Program to find and check the perfect square
b=0
def square(digit):
while True:
for i in range(0,int(digit/2)):
b=i*i
if(b==digit):
return(i)
if(b!=digit):
return(-555)y
number=int(input('enter the number to be find perfect square root '))
a=square(number)
if(number==a*a):
print(number,' is a perfect square')
print('the square root of',number,'is',a)
else:
print('Since!',number,'is not a perfect square of any number ')
print('sorry! ',number,'does not have perfect square root')
Comments
Post a Comment
THANK YOU FOR COMMENTING !
PLEASE SUBSCRIBE TO OUR WEBSITE FOR LATEST UPDATES