0

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

java

2 Réponses

0

So what you got so far?

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!