Write a function definition for a function is_root_of that takes two argument of type int and returns a bool value. The function returns true if the first argument is the square root of the second; otherwise, it returns false.
bool is_root_of(int root_candidate, int number)
{
return (number == root_candidate*root_candidate);
}