Challenge: Print Even Numbers
Opgave
Swipe to start coding
Practice iterating through arrays by filtering and printing only the even numbers from a list.
- Loop through each element in the
numbersarray. - Check if the current element is an even number.
- Print the even numbers.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 6
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
Awesome!
Completion rate improved to 3.57
Challenge: Print Even Numbers
Stryg for at vise menuen
Opgave
Swipe to start coding
Practice iterating through arrays by filtering and printing only the even numbers from a list.
- Loop through each element in the
numbersarray. - Check if the current element is an even number.
- Print the even numbers.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 6
single