Math, asked by schahat7366, 1 year ago

how to count the number of ones in a binary number

Answers

Answered by BeautyNo1
0
Given a number, the task is to find XOR of count of 0s and count of 1s in binary representation of a given number. Examples: Input : 5 Output : 3 Binaryrepresentation : 101 Count of 0s = 1, Countof 1s = 2 1 XOR 2 = 3. Input : 7 Output : 3 Binary representation : 111 Count of 0s = 0 Count of 1s = 3 0 XOR 3 = 3.

(Hope it helps)
Answered by Anonymous
3

Answer:

Plinth area and carpet area of a building is measured for estimation and calculation of building cost. It is also a measure of usable space of building. Plinth area is the covered built-up area measured at the floor level of any storey or at the floor level of the basement.

Step-by-step explanation:

.

Similar questions