Kodewick
Empieza a aprender →
Inicial←→0 / 100

Celsius a Fahrenheit

#068Inicialc * 9 / 5 + 323 min

En un viaje a EE. UU. el pronóstico viene en Fahrenheit. La fórmula es °F = °C × 9 / 5 + 32. Escribe c_to_f(c) para devolver el valor en Fahrenheit, redondeado a 1 decimal con round.

Ejemplos
c_to_f(100)→212.0
c_to_f(25)→77.0
main.py
def c_to_f(c):
    f = 0
    # tu código aquí: calcula f con la fórmula

    return round(f, 1)
Ctrl + Enter también ejecuta
Resultado

Ejecutar prueba los ejemplos. Cuando salgan bien, Enviar.