An even number is an integer which is “evenly divisible” by 2. This means that if the integer is divided by 2, it yields no remainder or 0 as remainder. Similarly, an Odd number is an integer which is not “evenly divisible” by 2 and will leaves 1 as remainder. Develop a LEX compiler for Finding whether the Input Number is EVEN or ODD.
Answers
Answered by
0
Answer:
Hope this helps you
Explanation:
class even_check
{
void num(int n)
if(n%2==0)
{
System.out.println(" Even number ");
}
else
{
System.out.println(" Odd number");
}
}
Similar questions