Challenge: if Condition
Oppgave
Swipe to start coding
- Declare an integer variable for the user’s age.
- If the user is 18 or older, print
Access granted. - If the user is between 13 and 17, print
Access limited. - If the user is 12 or younger, print
Access denied.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 8
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.25
Challenge: if Condition
Sveip for å vise menyen
Oppgave
Swipe to start coding
- Declare an integer variable for the user’s age.
- If the user is 18 or older, print
Access granted. - If the user is between 13 and 17, print
Access limited. - If the user is 12 or younger, print
Access denied.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 8
single