Math, asked by amazingrushil1108, 1 month ago

write a algorithm to find if a given number is even or not...options r not given

Answers

Answered by pritp404
3

Step-by-step explanation:

Method 1: By using the bitwise (&) operator, a number can be checked if it is odd or even. Method 2: By multiplying and dividing the number by 2. Divide the number by 2 and multiply it by 2. If the result is the same as that of the input, then it is an even number otherwise, it is an odd number.

▀▄▀▄it's tushar raj ▄▀▄▀

Similar questions