Challenge: Print Even Numbers
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 3.57
Challenge: Print Even Numbers
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 6
single