m2skills

squareroot op

Jun 11th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Enter the number whose square root is to be found : 25
  2. Enter the initial guess : 9
  3. 5.888888888888889
  4. 4.245283018867924
  5. 5.067085953878406
  6. 4.933802234174597
  7. 5.000444094026502
  8. 4.999555945413896
  9. 5.000000019720199
  10. 4.999999980279801
  11. The Square Root of 25.0 is 5.000000019720199
  12. Do you want to enter another number (1/0): 1
  13. Enter the number whose square root is to be found : 12
  14. Enter the initial guess : 4
  15. 3.5
  16. 3.4285714285714284
  17. 3.4642857142857144
  18. 3.4639175257731956
  19. 3.4641016200294548
  20. 3.4641016102460545
  21. The Square Root of 12.0 is 3.4641016200294548
  22. Do you want to enter another number (1/0): 0
Add Comment
Please, Sign In to add comment