In this program, you will learn to check whether the number entered by an user is even or odd. This will be done using if...else statement in Java.
Java Program to Check Whether a Given Number is Even or Odd
When you run the program, the output will be:
Enter a number :125
125 is odd
Post a Comment
Thank you for vising