finds the square root of number and prints to console