Share your repls and programming experiences

← Back to all posts
6.A. While: Number of even elements
pole55

Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the number of even elements of the sequence.

Example input
2
1
4
0

Example output
2

Voters
NaashonWilliams
Meshva_Patel_Pa
CristopherHu
tomhardie33
FranzEkane
KaiseyMacAlevy
pole55