mickeyyyy7776 mickeyyyy7776
  • 22-10-2020
  • Computers and Technology
contestada

Running on a particular treadmill you burn 3.9 calories per minute. Write a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.

Respuesta :

Cytokine
Cytokine Cytokine
  • 22-10-2020

In python:

i = 10

while i <= 30:

    print(f"{i * 3.9} calories burned after {i} minutes")

    i += 5

I hope this helps!

Answer Link

Otras preguntas

Locke argued that all humans are born with what natural rights?
All of the following are indicators of low social welfare except __________. a. high infectious disease rates b. inadequate sewer systems c. high literacy rates
Beth has seven $107 which shows the amount of money that has
Geographic barriers can influence groups of people to form cultures in isolation because they prevent the influence of outside factors. a. True b. False
what makes women more likely to become infect with HIV?
Which four shapes makes triangle
So all common nouns begin with a capital letter?
What does Atticus do for a living in To Kill a Mockingbird
what great victory for farmers took place in 1877
(1) We decided to climb Mt. Rainer, but it was a long, hard journey to Washington State from Medford, Oregon. (2) We were worried about our likely sucess in the