Секція 1. Розділ 12
single
Challenge: Filter Even Numbers
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Write a function that prints only the odd numbers from the provided array using a while loop and the continue statement.
- Loop through each element in the numbers array using a while loop.
- Use the continue statement to skip any even numbers.
- Print each odd number to the console.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 12
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат