Page 1 of 1

Basic java using do while loop and actually output data. Pls don't use Math.sqrt or anything like it. 1. Make a guess at

Posted: Sun Jul 03, 2022 11:22 am
by answerhappygod
Basic java using do while loop and actuallyoutput data. Pls don't use Math.sqrt or anythinglike it.
1. Make a guess at the answer (try squared / 2 as your initialguess).
2. Compute root = squared / guess .
3. Set guess = (guess + root) / 2 .
4. Start back at step 2 for as many iterations as necessary. Themore times steps 2 and 3 are repeated, the closer guess gets to thesquare root of squared.
Basic Java Using Do While Loop And Actually Output Data Pls Don T Use Math Sqrt Or Anything Like It 1 Make A Guess At 1
Basic Java Using Do While Loop And Actually Output Data Pls Don T Use Math Sqrt Or Anything Like It 1 Make A Guess At 1 (5.52 KiB) Viewed 15 times
Enter a double: 152415765.3 Square root of 152415765.300000 is 12345.68