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 is warm outside. Wear light clothes!". - Otherwise, output:
"It is cold outside. Wear a jacket!".
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 38
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 is warm outside. Wear light clothes!". - Otherwise, output:
"It is cold outside. Wear a jacket!".
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 38
single