Challenge: if Condition
Opgave
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
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 8
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 1.25
Challenge: if Condition
Stryg for at vise menuen
Opgave
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
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 8
single