write a program in java to input a number to check whether it is a negative number or not. else print it is an even number
Answers
Answered by
1
Answer:
it's simple
Explanation:
Java program to check whether a number is even or odd; if it's divisible by two, then it's even, otherwise, odd. We use the modulus operator to find the remainder. For an even number, it's zero when it's divided by two (it's one for an odd number).
Similar questions