Challenge: Temperature Advisor
Taak
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!".
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 38
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 1.33
Challenge: Temperature Advisor
Veeg om het menu te tonen
Taak
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!".
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 38
single