/*This prog supposed to convert from binary number system to decimal but
something is not
working properly please help*/

There is two things to notice.
First, when you enter the number you must have a space
or an enter between the numbers, otherwise it will see
it as one big numer.
Second, the program seems to handle the digits backwards,
if i enter 1 0 0 0 0 0 0 0, the answer is 1, whereas
get me 128.