Answer to Question #258922 in Python for Pooja

Question #258922

Given two integers (M and N), write a program to print the first perfect square in a given range.


1
Expert's answer
2021-10-30T13:32:11-0400
N = int(input('N:'))
M = int(input('M:'))
for num in range(N, M + 1):
	if num ** .5 == int(num ** .5):
		print(num)
		break

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog