Get detailed and reliable answers to your questions on IDNLearn.com. Ask your questions and receive detailed and reliable answers from our experienced and knowledgeable community members.

OBJP4 Self-Check 1.2: binary1
Language/Type:
Author:
Java basics binary numbers
Marty Stepp (on 2016/09/08)
Convert each of the following decimal numbers into its equivalent binary number:
6
44
72
131


Sagot :

Answer:

6 = 0110

44 = 101100

72 = 1001000

131 = 10000011

Explanation:

You can use the windows calculator in programmer mode to make this conversion easily.

If you want to do it by hand, here's one way to do it.

1. Write from right to left.

2. If your number is even, write down a 0.

3. If your number is odd, write down a 1 and subtract 1 from it.

4. Divide your number by 2.

5. If number not 0, go to step 2.