Challenge: Temperature Advisor
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 9