The program below is the answer to Deitel’s Java How to Program (9th Edition) Chapter 2 Exercise 2.25.

Question: Write an application that reads an integer and determines and prints whether it’s odd or even. [Hint: Use the remainder operator. An even number is a multiple of 2. Any multiple of 2 leaves a remainder of 0 when divided by 2.]

Write A Comment