Write a function named nextPerfectSquare that returns the first perfect square that is greater than its integer argument. A perfect square is an integer that is equal to some integer squared. For example 16 is a perfect square because 16 = 4 * 4. However 15 is not a perfect square because there is no integer n such that 15 = n*n.
The signature of the function is
int nextPerfectSquare(int n)
Examples
Answer Coming Soon. You can also Guess in comments.
The signature of the function is
int nextPerfectSquare(int n)
Examples
Answer Coming Soon. You can also Guess in comments.