+ 2

How to convert decimal to binary using java

To convert decimal to java

16th Apr 2017, 5:46 PM
Naman Raj
Naman Raj - avatar
4 Respuestas
+ 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
16th Apr 2017, 5:59 PM
Pixie
Pixie - avatar
+ 6
Do you mean printing a number in binary format? System.out.println(Integer.toBinaryString(x));
16th Apr 2017, 6:06 PM
Tamás Barta
Tamás Barta - avatar
+ 3
remainder = number % 2 printBinary( number >> 1) System.out.println(remainder)
16th Apr 2017, 8:09 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
0
without any Function ... How to convert decimal to binary.. https://code.sololearn.com/cPLs2plCWH4s/?ref=app
29th Apr 2017, 12:45 AM
P∆WAN M∆URY∆
P∆WAN M∆URY∆ - avatar