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's warm outside. Wear light clothes!"
. - Otherwise, output:
"It's cold outside. Wear a jacket!"
.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 9