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 is warm outside. Wear light clothes!". - Otherwise, output:
"It is cold outside. Wear a jacket!".
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 38
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 1.33
Challenge: Temperature Advisor
Sveip for å vise menyen
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 is warm outside. Wear light clothes!". - Otherwise, output:
"It is cold outside. Wear a jacket!".
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 38
single