Question: Q 2 : Write a function that takes a single numeric value as input that divides the input number in half until it is smaller
Q: Write a function that takes a single numeric value as input that divides the input number in half until it
is smaller than then returns as output the number of times the value was cut in half. Clearly display
the results using appropriate text in the command window. Your script should include a test that verifies the
performance of your code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
