Interview Question

Interview New York, NY

square root algorithm

Answer

Interview Answer

1 Answer

0

double squareRoot = number/2; do { g=squareRoot; squareRoot = (g + (number/g))/2; System.out.println(" g =" +g + " squareRoot =" +squareRoot); } while((g-squareRoot)!=0);

Sahin on Feb 18, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.