# Initialize two integer variabl

*label*Programming

*timer*Asked: Nov 7th, 2015

**Question description**

Initialize two integer variables and set them to zero. Then continuing with programming assignment #3, loop through each item in the array and do a calculation to determine if the number is even or odd (using the modulus operator). Using a switch statement, increment one variable for all even numbers and do the same for the other variable for any odd numbers (using the increment operator).

Output the total number of even and off numbers to the screen.

Example output:

34

53

125

854

8

1045

66

9434

5205

235

There are 5 even numbers.

There are 5 odd numbers.