Hi first you have to specify if the binary you input has the MSB at the rightmost or leftmost bit. Then you must think on how to store the binary number. So you just input 0101011 and will use only the converted version or you will actually have binary data coming from another function. Anyways the using "int binary" is wrong. Just take into account a char array or a string would be better in case you will only input by hand.