0

Can somebody help me in a java progarm to convert decimal to binary form

java

8th Aug 2018, 4:52 PM
Busky Bharadvaj
Busky Bharadvaj - avatar
2 ответов
0
So what you got so far?
8th Aug 2018, 7:14 PM
Jonas Schröter
Jonas Schröter - avatar
0
Here's the idea of converting: Decimal: 10 10 / 2 = 5 R 0 5 / 2 = 2 R 1 2 / 2 = 1 R 0 1 / 2 = 0 R 1 Then you write the remainders backwards: 1010 Done!
8th Aug 2018, 7:17 PM
Jonas Schröter
Jonas Schröter - avatar