Jason
2013-11-25 23:32:14 UTC
I'm then suppose to convert that binary integer into it's base 10 representation, so pretty much binary to decimal.
So far all I managed to get down is have user input the string and store it as an array. I know the formula would be something like
sum += (pow(2,j) * arr[i])
Any help would be much appreciated, thanks!