Given two integers (M and N), write a program to print the first perfect square in a given range.
m = int(input('M = ')) n = int(input('N = ')) res = None for i in range(m,n+1): if i**(1/2) == int(i**(1/2)): res = i break print(res)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment