Bloomberg interview question

Using a computer programming script, how would you solve for the square root of an integer which was input by the program user?