-->
当前位置:首页 > 题库

PROGRAMMING:Statistical parity

Luz5年前 (2021-05-10)题库474
Input a batch of positive integers from the keyboard (end with - 1), and count the odd and even numbers.
###Input format:
Enter a batch of positive integers, separated by spaces, and ended with - 1. The - 1 only represents the end flag, and is not counted as real data. In a batch of data, only - 1 will appear at the end.
###Output format:
Count the odd and even numbers respectively, and then output them in the following format:
```
Odds=4
Evens=5
```
###Input example:
Here is a set of inputs. For example:
```in
5 2 8 9 4 7 6 3 10 -1
```
###Output example:
The corresponding output is given here. For example:
```out
Odds=4
Evens=5
```







answer:If there is no answer, please comment