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

How many days are in four consecutive years
what is the greatest common factor of 72 and 100
You've been assigned a research paper on the possible role of gender in playground behavior, and you're unsure where to begin your research. What would be the b
Find three solutions to each equation then graph the solution set -2x+y=1
Out of 5,400 raffle tickets sold at the carnival, 180 are winners. At this same rate, how many winning raffles tickets can be expected if 8,100 raffle tickets a
Which statement best describes democratic governments? A. Individual citizens have no voice in choosing government leaders. B. Basic civil rights
what is the functional nature of the portal system and how does it differ from normal venous return flow?
What is 2.06% written as a decimal?
A person who has been impeached may not be tried in a regular court of law. A. True B. False
The Nationalist government under Chiang Kai-shek fled mainland China for _______.