Computer Science, asked by srivarshinikanagaraj, 2 months ago

write a python program to check whether a number is ending with 3​

Answers

Answered by Anonymous
1

Explanation:

Get count of all set bits at odd positions (For 23 it's 3). 2) Get count of all set bits at even positions (For 23 it's 1). 3) If difference of above two counts is a multiple of 3 then number is also a multiple of 3.

Similar questions