Find the greatest number of 4-digits which is a perfect square.
greatest number of 4-digits=9999
Finding the square root,we see that 198 has been left as remainder.
∴ 4−digit greatest perfect square=9999−198=9801