Challenge: Temperature Advisor
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 9