Quote Originally Posted by Salem View Post
> code works, what would be a better way to write the sqrt_function?
Only by dumb luck.

Code:
double sqrt_function (double number)
{
    double answer = sqrt (number);// you were just ignoring the result
 
    return answer; // this is a value to return
}

thanks, looks good, and works great.