Write a Java Program to Check input number is Even or Odd

By | January 20, 2017

Write a Java Program to Check input number is Even or Odd


Even numbers are those which are divisible by 2, and which numbers are not divisible 2 is called odd numbers.

In this program we receive input value from keyboard and find modulo 2 (n%2) of number if reminder of number is zero then that number is even other wise odd.

SOURCE CODE ::

 

 

OUTPUT ::

 

 

Leave a Reply