Abschnitt 1. Kapitel 12
single
Challenge: Filter Even Numbers
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 12
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen