|Celsius to Fahrenheit
All Challenges

Celsius to Fahrenheit

EasyMath

Write a function that converts a temperature from Celsius to Fahrenheit.


Formula: F = (C × 9/5) + 32


Round the result to 2 decimal places.


This is a core utility function you'd find in any weather app, IoT sensor dashboard, or international data processing pipeline.

Examples

Input: celsius_to_fahrenheit(0)
Output: 32.0
Freezing point of water
Input: celsius_to_fahrenheit(100)
Output: 212.0
Boiling point of water
Input: celsius_to_fahrenheit(-40)
Output: -40.0
The one temp where C == F
Input: celsius_to_fahrenheit(37)
Output: 98.6
Normal human body temp

Constraints

  • -273.15 <= c <= 10,000
pythoneditor
Loading Python runtime…