Question
Jan Villaroel
Topic: Python Posted 9 months ago
Write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. The formula for converting

Write 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 = (( 9/5 ) * C ) + 32

where F is the Fahrenheit temperature, and C is the Celsius temperature. Your program must use a loop to display the table.


Answers
What are best answers and total votes?
Best Answer
No Votes
Vote
SignIn to Vote
Koala Tutor
Mar 5, 2024
Koala Ai Support

```python
print("Celsius Fahrenheit")
print("--------------------")

for c in range(21):
f = ((9/5) * c) + 32
print(f"{c:<9} {f}")
```

This program will output:

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

Koala Tutor Got a question with my answer?
Message Me

Community
Completely FREE!
Powered by GPT-4
Marketplace
Get unlimited help from freelance Math experts.
Premium (Coming Soon)
GPT-4 + Premium Access