Computer Science, asked by negajod963, 3 months ago

find even numbers in an array​

Answers

Answered by Laiba12210
3

Even Numbers:

2

6

2

Odd Numbers:

1

5

3

hope it helps you

Answered by jai696
10

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

nums = [int(n) for n in input("enter nums: ").split()]

even_nums = [n for n in nums if n % 2 == 0]

print(f"even nums: {even_nums}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions