In this Java program, we will use an if else statement to check whether a number is even or odd. If the number is even, the program will print "1" if the number is odd, the program will print "0"
This program is useful for checking whether a number is a desired value. For example, if you're a grocery store clerk and you want to check whether a customer's number is even or odd, you could use this Java program.
Java program to check whether a number is even or odd || if else statement using Java ||sctevt java
#cslectalks #javaprogramming #sctevt #sctevtjava