Write a program to display all the numbers between m and n input from the
keyboard (where m<n, m>0, n>0), check and display the numbers that are
perfect square. e.g. 25, 36, 49, --------- are said to be perfect square numbers.
(A number is said to be a perfect square if its square root is an integer number.]
Answers
Answered by
1
Answer:
import math
m=int(input("Enter value of m="))
n=int(input("Enter value of n="))
if m<n and m>0 and n>0:
for i in rang(m,n):
w=math.sqrt(i)
if type(w) is int:
print('perfect square=', i)
else:
print('Incorrect information')
Similar questions