How to find perfect squares between two numbers?

Asked By:
3 answer(s)
Answer # 1 #

Steps:1. Find the square root of the lower number and round up. 2. Find square root of upper number and round down. 3. Square all integers in this range.

[2 Month]
Answer # 2 #

Example: Numbers 10 and 50 - √10 ≈ 3.16 → round up 4 - √50 ≈ 7.07 → round down 7 Perfect squares: 16, 25, 36, 49

[2 Month]
Answer # 3 #

In Python:```pythonlow, high = 10, 50for i in range(int(low0.5)+1, int(high0.5)+1): print(i*i)

[2 Month]