> For the complete documentation index, see [llms.txt](https://www.pythonclassroom.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pythonclassroom.com/loops/while-loop-countdown/while-loop-countdown-problems.md).

# Problems

## Problem 1

Using a while loop, print numbers from 50 to 0.

## Problem 2

Using a while loop, print odd numbers from 100 to 1.

## Problem 3

Using a while loop, print even numbers from 200 to 100.

## Problem 4

Use a while loop to ask the user for 5 numbers.  Print the average of those numbers.

## Problem 5 (optional)

Use a while loop to ask the user for 7 numbers.  Print the maximum number.

## Problem 6 (optional)

Use a while loop to ask the user for 6 numbers.  Print the minimum number.

## Problem 7

You play Roblox and have 5000 Robux.

You want to buy 3 items. In a while loop, ask the user how much each item costs.

Display the amount of Robux you have to start and the amount you have remaining.

## Problem 8

You eat a Chicken Burrito which is 1165 calories and now want to burn off these calories.

You burn 8 calories per minute walking around.

Use a while loop to display a chart to display how many calories you have left to burn off from 60 minutes to 0.

After your exercise, you get even more hungry and eat a Big Mac which is 540 calories. Add these calories to the amount you have left after walking.

You burn 10 calories per minute running.

Use another while loop to display a chart to display how many calories you have left to burn off from 30 minutes to 0.

## Problem 9

Use a while loop to display a table of Celsius temperatures from 20 to 10 and their Fahrenheit equivalents.

The formula for converting a temperature from Celsius to Fahrenheit is:

$$
F=\frac{9}{5}C + 32
$$

Before the while loop, add the following these lines to create your chart.

print("Celsius\tFahrenheit")&#x20;

print("----------------------")

## Problem 10

Use a while loop to display a table of Fahrenheit temperatures from 100 to 85 and their Celsius equivalents.

The formula for converting a temperature from Fahrenheit to Celsius is:

$$
C=\frac{5}{9}(F-32)
$$

Before the while loop, add the following these lines to create your chart.

print("Fahrenheit\tCelsius") print("----------------------")

##


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pythonclassroom.com/loops/while-loop-countdown/while-loop-countdown-problems.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
