Write a Java program that can take a positive integer greater than 2 as input and write out the number of times one must repeatedly divide this number by 2 before getting a value less than 2.

icon
Related questions
Question
Write a Java program that can take a positive integer greater than 2 as input and write out the number of times one
must repeatedly divide this number by 2 before getting a value less than 2.
Transcribed Image Text:Write a Java program that can take a positive integer greater than 2 as input and write out the number of times one must repeatedly divide this number by 2 before getting a value less than 2.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer