+ 1
How i write a java code to convert decimal to binary without using arrays, stacks? Only using basic concepts. Help me guys.
4 Antworten
+ 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
+ 3
you are right, it's reversed
fixed it now
+ 1
its wrong bro.. it gives upside down of the answer..