Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i get this output  RSS feed

 
Jesus Rod Valenzuela
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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]
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16027
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!