Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

? asked in HealthDiet & Fitness · 6 years ago

Does this pseudocode loop make sense?

// Constant for the number of calories burned per minute

Constant Real calories = 3.9

// Create loop to determine the number of calories burned

While calories == calories * 10

Display “The calories you have burned running so far is, ” calories

End While

1 Answer

Relevance
  • ?
    Lv 6
    6 years ago
    Favorite Answer

    no.

    nothing increments in the loop, and the condition will never be met.

    while calories == calories * 10

    means while 3.9 == 39?

Still have questions? Get your answers by asking now.