samiullahshakil131 samiullahshakil131
  • 11-12-2021
  • Computers and Technology
contestada

Implement a function mystery( ) that takes as input a positive integer n and answers this
question. How many times can n be halved (using integer division) before reaching 1?

Relax

Respuesta :

edwinlozada190
edwinlozada190 edwinlozada190
  • 12-12-2021
Count= 0
While n > 1
n = n
Count += 1
Return count
Answer Link

Otras preguntas

What does photosynthesis require in addition to water and carbon dioxide
The geologic time scale is based on
Write a number in which the digit 2 is one tenth the value of the digit 2 in 8.524
a triangle has side lengths of 10 inches, 24 inches, and 26 inches. is this a right triangle?
The sum of two numbers is 50. The first number is 43 less than twice the second number.
How to reduce 35/48?
The cost of a bracelet and a watch is $250. Find the price of each item is the bracelet cost 4 times as much as the watch.
When two fractions are between 0 and 1/2, how do you know which fraction is greater? explain
each month Kevin klog earns $1250 plus 0.8% of his sales last month his sales totaled $64,500. how much did Kevin earn?
will cell theory ever become the law of cells?