How to check whether the number is multiple of 4 in python?
Answers
Answered by
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
Math,
5 months ago
Math,
5 months ago
Math,
5 months ago
Math,
10 months ago
Biology,
10 months ago
Business Studies,
1 year ago
Psychology,
1 year ago