Challenge: Temperature Advisor
Task
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 greater than or equal to 25Β°C, display:
"It is warm outside. Wear light clothes!" - Otherwise, display:
"It is cold outside. Wear a jacket!"
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 8
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.35
Challenge: Temperature Advisor
Swipe to show menu
Task
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 greater than or equal to 25Β°C, display:
"It is warm outside. Wear light clothes!" - Otherwise, display:
"It is cold outside. Wear a jacket!"
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 8
single