Challenge: Print Even Numbers
Uppgift
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 6
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 3.57
Challenge: Print Even Numbers
Svep för att visa menyn
Uppgift
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 6
single