Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
8

6.A. While: Number of even elements

pole55
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

4 years ago

Voters