Menu
Coddy logo textTech

Celsius to Kelvin

Lesson 3 of 10 in Coddy's Temperature Converter using C++ course.

challenge icon

Challenge

Easy

Add a function named celsiusToKelvin that gets a celsius value (float) and returns its conversion to kelvin (float).

The formula to convert from celcius to kelvin is:

Important: Don't delete your previous code!

Try it yourself

float celsiusToFahrenheit(float celsius) {
    return (celsius * 9.0 / 5.0) + 32.0;
}

All lessons in Temperature Converter using C++