Computer Science, asked by shrutianand2105, 1 month ago

WAP to input any 20 numbers and count and display how many are even and odd​

Answers

Answered by NovaKun
1

Answer:

If you are using python then:

l = []

for i in range(20):

inp = int(input("Enter num"))

l.append(inp)

even = [l.remove(i) or i for i in l if i%2==0]

print(f"Even Numbers: {even} Odd Numbers: {l}")

Similar questions