Write a java function to find out the even numbers that are present in the list and output another list with those numbers.
sample input : 1 -> 2 -> 5 -> 3 -> 8
sample output : 2 -> 8
Answers
Answered by
0
Answer:
def is_even_num(l):
enum = []
for n in l:
if n % 2 == 0:
enum.append(n)
return enum
print(is_even_num
Similar questions