+ 2
How to convert decimal to binary using java
To convert decimal to java
4 Answers
+ 9
I have done this on cpp. The core logic is the same. You just need to change the syntax
https://code.sololearn.com/cOHN63k7wTty/?ref=app
+ 6
Do you mean printing a number in binary format?
System.out.println(Integer.toBinaryString(x));
+ 3
remainder = number % 2
printBinary( number >> 1)
System.out.println(remainder)
0
without any Function ... How to convert decimal to binary..
https://code.sololearn.com/cPLs2plCWH4s/?ref=app