+ 1

How i write a java code to convert decimal to binary without using arrays, stacks? Only using basic concepts. Help me guys.

14th May 2017, 10:42 AM
Sandaru Chamika
Sandaru Chamika - avatar
4 Answers
+ 4
made some improvements now the code converts to binary shows results of binary output (of course) number of bits pads with zeroes to match number of calculated bits
14th May 2017, 12:04 PM
Burey
Burey - avatar
+ 3
you are right, it's reversed fixed it now
14th May 2017, 11:14 AM
Burey
Burey - avatar
+ 1
its wrong bro.. it gives upside down of the answer..
14th May 2017, 11:07 AM
Sandaru Chamika
Sandaru Chamika - avatar