Computer Science, asked by rohit7979824417, 1 year ago

convert binary no 23​

Answers

Answered by subhadra53
1

Answer:

Let's start with some powers of 2:

2 0=1

2 1=2

2 2=4

2v3=8

2 4=16

2 5=32 ji

We need to write out 23, so this is enough powers of 2.

Start with the highest power of 2 that is equal to or less than the number. This is 16. So write a 1 down and subtract it out: 23−16=7.

The next highest power, 8, is greater than 7, so write a zero: 10.

The next one, 4, is not greater than 7, so subtract it out (7−4=3) and write a 1: 101.

The next one, 2, is not greater than 3, so subtract it out (3−2=1) and write another 1: 1011.

The last one, 1, is not greater than 1, so subtract it out (1−1=0) and write a 1: 10111, and we're done.

Explanation:

Answer is 10111

Answered by sayantanbose286
0

Answer:

00010111 is the binary result of (23)

Explanation:

I have used the shortest method.

Put 8 bit address

128 64 32 16 8 4 2 1

0. 0. 0. 1. 0 1. 1. 1

Now what I do is that

We have to add the nos.under which we got 1.

So see now 16+4+2+1=23

Now why I put zero under 128 or 62 or 32 or 8 .

Because the no. Is 23 which we need so 128 is greater than 23 ,in this way 64,32 is not needed to find binary of 23.

But why not 8

Because if I add 16+8 = 24

Then it is greater than. 23 .and it is not required also .so to get 23 I need

16,4,2,1 .so put 1 on those and rest are zero .

In this way you can get binary of any no. In shortest method.

Similar questions