Question: Develop a program that accepts a series of integer numbers. The program calculates and displays the count and sum of even and odd numbers separately.
- Develop a program that accepts a series of integer numbers. The program calculates and displays the count and sum of even and odd numbers separately. The program should stop when the user enters exit.
In java
Sample Enter an integer: 1 Enter an integer: 2 Enter an integer: 3 Enter an integer: 4 Enter an integer: 5 Enter an integer: exit Type Count Sum - 6 Even Odd 2 3 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
