← Back

Code Challenge 4.3 - Celsius to Fahrenheit Function


Objective

Your task is to write a program that converts a temperature from Celsius to Fahrenheit. This time, we’ll focus on encapsulating the code into functions/methods.

Skills to Practice:

Challenge Tasks

Python

def celsius_to_fahrenheit(celsius):
    # code

C#

double CelsiusToFahrenheit(double celsius)
{
    // code
}