How do you check if a number is even or odd? | Even or odd program in java
/ @srvinstituteoftechnologyby7299
Check whether a given number is even or odd
If a number is evenly divisible by 2 with no remainder, then it is even. You can calculate the remainder with the modulo operator % like this num % 2 == 0 . If a number divided by 2 leaves a remainder of 1, then the number is odd.
Even or odd program in java
Input: 4
Output: even
Input: 15
Output: odd
#java #bluej #programming #developer #python #learning #edtech #classroom #edapp #elearning #mlearning #scichat #icsesiniogren #icseboard #icsc #cbsc #computer #odd #even