• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How can i get this output

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1 Enter a number to find its square root -> 100
2 [1.000000, 100.000000]
3 [1.000000, 50.500000]
4 [1.000000, 25.750000]
5 [1.000000, 13.375000]
6 [7.187500, 13.375000]
7 [7.187500, 10.281250]
8 [8.734375, 10.281250]
9 [9.507813, 10.281250]
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jesus,

It is not clear what the output means. Is this supposed to be a program that calculates a square root by some algorithm, where each line in the output is a step in the algorithm? Please explain what the program is intended to do, instead of just showing what the output is supposed to look like, because from just that we can only guess what the intention is.

Also, what did you try yourself? Please show us your own attempt (your code) at solving the problem and explain where you are stuck. We can then help you get over the point where you are stuck.
 
I am Arthur, King of the Britons. And this is a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic