Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

decimals to binary

$
0
0
Ok, I must mess with changing decimals to binary and changing binary to decimals etc etc... I can do this using a variable, or using one number. But we have to use a set list of numbers. I don't really know where to begin... I could try to do it all manually but that would result in like a million freekin lines of code.

Would a for loop do this for me? I just don't know how to work this set list of numbers. Since its specific numbers I do not require anything to be entered in this function, therefore I can't scanf() anything in and I just don't know lol.

Could anyone possibly give me a little direction on how to get this rolling?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>