square number



I am little bizzare with math but i follow a simple solution to find
perfect squares

if x is the number then to find x is perfect square or not

if ( pow( floor( sqrt( x ) ) , 2 ) == x)
print x is square
else
not a square


I find it from some forum.

.


Loading