Computer Science, asked by nimmimukkattu, 8 months ago

How to check whether the number is multiple of 4 in python? ​

Answers

Answered by madhurimachakuvis
0

Answer:

A multiple of 4 always has 00 as its last two digits in its binary representation. We have to check whether the last two digits of n are unset or not. How to check whether the last two bits are unset or not. If n & 3 == 0, then the last two bits are unset, else either both or one of them are set.

Plzz............Mark me as Brainliest

Similar questions