Re: [Tutor] Binary/Decimal convertor

2013-01-11 Thread Alan Gauld
On 11/01/13 21:51, Ghadir Ghasemi wrote: Hi, I made a program called binary/denary convertor. Can anyone tell me about how I could stop the user entering a binary > number with more than 8 numbers or 8 bit Why would you want to? Your code can handle much bigger binary numbers, why limit the

Re: [Tutor] Binary/Decimal convertor

2013-01-11 Thread Dave Angel
On 01/11/2013 04:51 PM, Ghadir Ghasemi wrote: > Hi, I made a program called binary/denary convertor. Can anyone tell me about > how I could stop the user entering a binary number with more than 8 numbers > or 8 bit by repeating the question over and over until they do enter a > correct binary nu

Re: [Tutor] Binary/Decimal convertor

2013-01-11 Thread David Rock
* Ghadir Ghasemi [2013-01-11 21:51]: > Hi, I made a program called binary/denary convertor. Can anyone tell > me about how I could stop the user entering a binary number with more > than 8 numbers or 8 bit by repeating the question over and over until > they do enter a correct binary number( 8-bit

[Tutor] Binary/Decimal convertor

2013-01-11 Thread Ghadir Ghasemi
Hi, I made a program called binary/denary convertor. Can anyone tell me about how I could stop the user entering a binary number with more than 8 numbers or 8 bit by repeating the question over and over until they do enter a correct binary number( 8-bit or less) Here is the code. I started off b