subject

Write a function solution that, given two integers a and b, returns the maximum number of repeated square root operations that can be performed using the numbers from the interval [a..b](both ends included) as starting points. square root operations can be performed as long as the result is still an integer.
for example, given a = 10, b = 20, the function should return 2. starting with the integer 16, two square root operations can be performed: sqrt(16) = 4 and then sqrt(4) = 2.
given a = 6000 and b = 7000, the function should return 3. starting with integer 6561, three square root operations can be performed: sqrt(6561) = 81, sqrt(81) = 9 and sqrt(9) = 3.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:50
What does operator overloading allow you to do?
Answers: 2
question
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
You know the right answer?
Write a function solution that, given two integers a and b, returns the maximum number of repeated s...
Questions
question
Mathematics, 02.10.2019 02:00
question
Mathematics, 02.10.2019 02:00
question
Mathematics, 02.10.2019 02:00
Questions on the website: 13722363