Re: [Tutor] Adding Binary

2013-01-12 Thread Alan Gauld
On 12/01/13 20:43, Ali Raza Ghasemi wrote: I am making a program that adds binary numbers together. The program has to accept two binary values (up to 8 binary digits) and output their total in binary. The output should not contain any leading zeros. The first thing to realize is that all numbe

Re: [Tutor] Adding Binary

2013-01-12 Thread Dave Angel
On 01/12/2013 03:43 PM, Ali Raza Ghasemi wrote: > I am making a program that adds binary numbers together. The program has to > accept two binary values (up to 8 binary digits) and output their total in > binary. The output should not contain any leading zeros. > I have a problem in that I don't

[Tutor] Adding Binary

2013-01-12 Thread Ali Raza Ghasemi
I am making a program that adds binary numbers together. The program has to accept two binary values (up to 8 binary digits) and output their total in binary. The output should not contain any leading zeros. I have a problem in that I don't know how to limit the number digits to 8 as it accepts