Binary to decimal program

how I can solve this type of problems?
I am facing very difficulty?
please give me some solution

For converting binary to decimal, you have to multiply the binary no in powers of 2, starting from power 0. For better explanations, you can actually refer to online study material for conversion process, like binary to decimal ; decimal to binary; decimal to octal ; octal to decimal…