I've written a small code that converts binary numbers into hex and decimal numbers. I want to restricting user input to just 0's and 1's but I'm having a bit of trouble.

Please can you help me.

Sarah Jamerson