a=9
b=100
write a program to find a number of perfect squares a to b
a = int(input("Enter a: "))
b = int(input("Enter b: "))
def perfectSquares(a, b):
for i in range(a, b + 1):
if i ** 0.5 == int(i ** 0.5):
print(i, end=" ")
perfectSquares(a, b)
Comments
Leave a comment