Where should the test for even-ness be


1.Write a program that ask the user to enter a series of numbers ending with -1. After the -1 is input, program should print how many numbers are even and how many numbers are odd. The test for even is that number % 2 == 0.

For this program, you'll need two accumulator variables - one to count the number of even numbers and one to count the number of odd numbers.

Where should the test for even-ness be?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Where should the test for even-ness be
Reference No:- TGS0119673

Expected delivery within 24 Hours