Challenge: Temperature Advisor
Tâche
Swipe to start coding
Write a program that gives clothing advice based on the temperature.
Use an if-else statement to check:
- If the temperature is above or equal to 25°C, output:
"It is warm outside. Wear light clothes!". - Otherwise, output:
"It is cold outside. Wear a jacket!".
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 38
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 1.33
Challenge: Temperature Advisor
Glissez pour afficher le menu
Tâche
Swipe to start coding
Write a program that gives clothing advice based on the temperature.
Use an if-else statement to check:
- If the temperature is above or equal to 25°C, output:
"It is warm outside. Wear light clothes!". - Otherwise, output:
"It is cold outside. Wear a jacket!".
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 38
single