First, let us find the square of 7900 using long division method.

The remainder is 156. Hence 882<7900
The next perfect square number is 892=7921>7900
Hence, the number to be added is 7921-7900=21
Therefore 21 should be added to 7900 to get a perfect square.