Computer Science, asked by subodhbhosale45, 1 day ago

In Java if a is a variable how can if(a%2!=0) prove its a odd number​

Answers

Answered by sonu1986106
1

Answer:

A number that is divisible by 2 and generates a remainder of 0 is called an even number. All the numbers ending with 0, 2, 4, 6, and 8 are even numbers. On the other hand, number that is not divisible by 2 and generates a remainder of 1 is called an odd number. All the numbers ending with 1, 3, 5,7, and 9 are odd numbers. Do refer to the below illustration to get what is supposed to be conveyed out basics here via generic Illustration for any random integer, check whether it is even or odd. 

Similar questions