← Back

Code Challenge 3.6 - Find Even and Odd Numbers


Objective

Separate even and odd numbers into two different collections.

Skills to Practice

Challenge Tasks

Sample Output

Enter the size of your collection: 6 [Enter]
Enter element 1: 10 [Enter]
Enter element 2: 25 [Enter]
Enter element 3: 18 [Enter]
Enter element 4: 31 [Enter]
Enter element 5: 22 [Enter]
Enter element 6: 29 [Enter]

Even numbers: 10 18 22
Odd numbers: 25 31 29