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 above or equal to 25Β°C, output:
"It's warm outside. Wear light clothes!"
. - Otherwise, output:
"It's cold outside. Wear a jacket!"
.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 9
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.33
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 above or equal to 25Β°C, output:
"It's warm outside. Wear light clothes!"
. - Otherwise, output:
"It's cold outside. Wear a jacket!"
.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 1.33SectionΒ 3. ChapterΒ 9
single