Celsius to Fahrenheit Table

Design a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. The formula for converting a temperature from Celsius to Fahrenheit is
F = 95 C + 3 2 where F is the Fahrenheit temperature and C is the Celsius temperature.
Your program must use a loop to display the table

f=9*c/5+32

To design a program that displays a table of Celsius temperatures converted to Fahrenheit, you can use a loop along with the conversion formula provided.

Here's how you can implement the program in Python:

```python
# Display Celsius to Fahrenheit Conversion Table

# Loop through Celsius temperatures 0 to 20
for celsius in range(0, 21):
# Convert Celsius to Fahrenheit using the formula
fahrenheit = (celsius * 9/5) + 32

# Print the result as a table
print(f"{celsius}°C = {fahrenheit}°F")
```

Explanation:
1. We use a `for` loop to iterate through the range of Celsius temperatures from 0 to 20 (`range(0, 21)`).
2. Inside the loop, we calculate the Fahrenheit equivalent by applying the conversion formula: F = (C * 9/5) + 32. We store the result in the variable `fahrenheit`.
3. The `print` statement is used to display the Celsius and Fahrenheit values in a formatted string. The `f"{celsius}°C = {fahrenheit}°F"` string contains placeholders `{celsius}` and `{fahrenheit}` which are filled with the current values of Celsius and Fahrenheit for each iteration of the loop.
4. The loop repeats for each value of Celsius from 0 to 20, displaying the converted Fahrenheit values in a table format.

Running this program will output the desired table of Celsius temperatures and their Fahrenheit equivalents:

```
0°C = 32.0°F
1°C = 33.8°F
2°C = 35.6°F
3°C = 37.4°F
4°C = 39.2°F
5°C = 41.0°F
6°C = 42.8°F
7°C = 44.6°F
8°C = 46.4°F
9°C = 48.2°F
10°C = 50.0°F
11°C = 51.8°F
12°C = 53.6°F
13°C = 55.4°F
14°C = 57.2°F
15°C = 59.0°F
16°C = 60.8°F
17°C = 62.6°F
18°C = 64.4°F
19°C = 66.2°F
20°C = 68.0°F
```