29.0k views
4 votes
Write a program that converts 27° from degrees Fahrenheit (F) to degrees Celsius (C) using the following formula: C = (F - 32) / 1.8

User Razvang
by
8.2k points

1 Answer

4 votes
Sure, here's a simple Python program to convert 27 degrees Fahrenheit to degrees Celsius using the given formula:

```python
# Input temperature in Fahrenheit
fahrenheit = 27

# Convert Fahrenheit to Celsius
celsius = (fahrenheit - 32) / 1.8

# Display the result
print(f"{fahrenheit} degrees Fahrenheit is equal to {celsius} degrees Celsius.")
```

When you run this program, it will calculate and display the equivalent temperature in degrees Celsius.
User Nikhil Pathania
by
8.0k points