Computer Science, asked by darbeshkhan843, 4 months ago

Convert to Binary numbers
a llu Holol​

Answers

Answered by shubhamgariya660
1

Answer:

Converting an integer from decimal to binary

A decimal integer can be converted to binary by dividing it by 2.

Take the quotient, and keep dividing it by 2, until you reach zero.

Each time you perform this division, take note of the remainder. Now reverse the remainders list, and you get the number in binary form.

Let’s make an example, I want to convert 29 into binary:

remainder 1

remainder 0

remainder 1

remainder 1

remainder 1

The binary number representing the 29 decimal is 11101.

Another example, let’s convert 145 decimal into binary.

remainder 1

remainder 0

remainder 0

remainder 0

remainder 1

remainder 0

remainder 0

remainder 1

The binary number representing the 145 decimal is 10010001

Similar questions