Prompts the user for a number and calculates its square root.