Answer:
# Get the range of Celsius temperatures from the user
start_celsius = int(input("Enter the starting Celsius temperature: "))
end_celsius = int(input("Enter the ending Celsius temperature: "))
# Print the table header
print("Celsius | Fahrenheit")
print("-" * 24)
# Loop through the range and convert to Fahrenheit
for celsius in range(start_celsius, end_celsius + 1):
fahrenheit = (9 / 5) * celsius + 32
print(f"{celsius}°C | {fahrenheit}°F")
Step-by-step explanation:
In this program, the user is prompted to enter the starting and ending Celsius temperatures. The program then uses a for loop to iterate through the range of Celsius temperatures, converting each temperature to Fahrenheit using the provided formula, and displaying the table with both Celsius and Fahrenheit values.