Challenge: Temperature Advisor
Uppgift
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!"
.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 9