Kotlinlearncs.online LogoJava
Return to List

Solve: Print Even Elements

Created By: Justin Maier
/ Version: 2024.9.0

Given an int array nums, write a loop that prints out only the even elements of nums.

For example, if nums is the array {8, 3, 4, 6, 7, 3, 2} your program should print 8, 4, 6, and 2.

Related Lessons

Stuck? You may find these lessons helpful: