Solución
solution.tsTypeScript
export function classifyTemp(celsius: number): string {
// Retorna "frío", "templado" o "calor" según la temperatura
if(celsius < 10) return "frío"
if(celsius <= 25) return "templado"
return "calor"
}
0respuestas