Computer Science, asked by arinpriyadarshi1, 19 days ago

Convert decimal number into binary number

a) 231
b) 324
c) 84
d) 64​

Answers

Answered by kingofself
3

Answer:

Explanation:

a) 231

Divide (231) 10 successively by 2 until the quotient is 0:

231 / 2 = 115, remainder is  1

115/2 = 57, remainder is     1

57/2 = 28, remainder is     1

28/2 = 14, remainder is      0

14/2 = 7, remainder is         0

7/2 = 3, remainder is          1

3/2 = 1, remainder is          1

1/2 = 0, remainder is          1

231= 11100111

b) 324

Divide (324)10 successively by 2 until the quotient is 0:

324/2 = 162, remainder is 0

162/2 = 81, remainder is 0

81/2 = 40, remainder is 1

40/2 = 20, remainder is 0

20/2 = 10, remainder is 0

10/2 = 5, remainder is 0

5/2 = 2, remainder is 1

2/2 = 1, remainder is 0

1/2 = 0, remainder is 1

324= 101000100

c) 84

Divide (84)10 successively by 2 until the quotient is 0:

84/2 = 42, remainder is 0

42/2 = 21, remainder is 0

21/2 = 10, remainder is 1

10/2 = 5, remainder is 0

5/2 = 2, remainder is 1

2/2 = 1, remainder is 0

1/2 = 0, remainder is 1

84= 1010100.

d) 64​

Divide (64)10 successively by 2 until the quotient is 0:

  • 64/2 = 32, remainder is 0
  • 32/2 = 16, remainder is 0
  • 16/2 = 8, remainder is 0
  • 8/2 = 4, remainder is 0
  • 4/2 = 2, remainder is 0
  • 2/2 = 1, remainder is 0
  • 1/2 = 0, remainder is 1

64 =1000000.

Similar questions