Question: Write a Java program that reads a set of integers, and then prints the sum of the even and odd those integers. An example of

Write a Java program that reads a set of integers, and then prints the sum of the even and odd those integers. An example of the program input and output is shown below: Enter a number: 4 Do you want to enter another number (y) : y Enter a number: 7 Do you want to enter another number (y) : y Enter a number: 8 Do you want to enter another number (y):y Enter a number: 3 Do you want to enter another number (y):n Sum of even numbers: 12 Sum of odd numbers: 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
