Determine if given number is a perfect square? Can't use Math.Sqrt library function

Write a function that takes an integer as input and returns true if it's a perfect square else false.

public static bool IsPerfectSquare(int n)
{
}

ex: Perfect squares = 16 (4x4), 25 (5x5) etc

Comments (13)