Converting binary to decimal using only Boolean and logic comparisons

join shbcf.ru