square root algorithm
Anonymous
double squareRoot = number/2; do { g=squareRoot; squareRoot = (g + (number/g))/2; System.out.println(" g =" +g + " squareRoot =" +squareRoot); } while((g-squareRoot)!=0);
Check out your Company Bowl for anonymous work chats.