Read a number and convert it to binary string???
Posted on 2005-04-11
Can someone help me what should i do with this program, just give me an idea??
Read a positive integer and convert it to a binary string:
Enter a positive number: 20
20 in decimal is 1 0100 in binary
user will enter 0 to exit the program.
Handle negative numbers and numbers that are too large. Make sure the output is properly spaced.