1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
castortr0y [4]
2 years ago
13

Write a function digits() that accepts a non-negative integer argument n and returns the number of digits in it’s decimal repres

entation. For credit, you should implement this using a loop and repeated integer division; you should not use math.log(), math.log10(), or conversion to string
Engineering
1 answer:
Katyanochek1 [597]2 years ago
3 0

Answer:

Explanation:

Let do this in python. We will utilize the while loop and keep on dividing by 10 until that number is less than 10. Along the loop we will count the number of looping process. Once the loop ends, we can output that as answer.

def digits(n):

    n_digit = 1

    while n >= 10:

         n_digit += 1

         n /= 10

    return n_digit

You might be interested in
What camera battery does the canon 250d use?
Mila [183]

Answer:

The Canon EOS 250 is a digital DSLR that features a 24MP sensor. It is powered by the Canon LP-E17, which is a rechargeable Lithium-Ion battery pack.

Explanation:

8 0
2 years ago
Read 2 more answers
Doubling the diameter of a solid, cylindrical wire doubles its strength in tension.
julsineya [31]

Answer:

True ❤️

-Solid by solid can make Cylindrical wire doubles Strengths in tension

4 0
3 years ago
What are the advantages and disadvantages of a mine heardgear​
Irina18 [472]

Answer:

If there is a shaft with headgear, then mining can take place until that depth of the shaft. If it is accessed horizontal Adits, it can mine until the lowest Adit from upwards. If it is accessed decline, the development and mining can continue so long as economic exploitation is possible.

Explanation:

What are the disadvantages of mining headgear? They totally cut off your vision of anything above your head. They are hot, most of the time

7 0
1 year ago
Min is conducting an experiment where he compares the properties of water and lemonade. The first stage of the experiment is foc
madam [21]

Answer:

only if i knew

Explanation:

5 0
3 years ago
Opinion: Choose a side and defend it in four to five sentences. Given the choice between a vehicle that runs on gasoline or one
vaieri [72.5K]

Answer:

my opinion would be electric

Explanation:

because when it comes down to the bare minimum the best choice for the world in the long run would be electric because it puts a big dent back for global warming and the burning of gasses so the more people who drive electric cars are the people who are trying to save the world a little at a time by preventing the burning of gasses. hope this helps :)

6 0
2 years ago
Read 2 more answers
Other questions:
  • The Cv factor for a valve is 48. Compute the head loss when 30 GPM of water passes through the valve.
    13·1 answer
  • Air enters a tank through an area of 0.2 ft2 with a velocity of 15 ft/s and a density of 0.03 slug/ft3. Air leaves with a veloci
    5·1 answer
  • A horizontal curve on a two-lane road is designed with a 2,300-ft radius, 12-ft lanes, and a 65-mph design speed. Determine the
    11·1 answer
  • The air loss rate for a straight truck or bus with the engine off and the brakes
    11·1 answer
  • Who is using welding symbols to to communicate the detailed information necessary for welders to complete the weld?
    6·1 answer
  • If a car travels 8 miles in 15 minutes, what is the speed of the car in miles per hour
    11·1 answer
  • A magnesium oxide component must not fail when a tensile stress of 14 MPa is applied. Determine the maximum allowable surface cr
    8·1 answer
  • Identify the different engineering activities/steps in the engineering design process for each steps,summarize in 1–3 sentences
    13·1 answer
  • A(n)<br> is a safety device commonly<br> used with a slotted nut.
    14·1 answer
  • John has an exhaust leak in his Acura Integra GS-R, What steps would he take to fix the leak in time for his inspection?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!