The user is asked to input how many bits he wants and has to input also the value of every bit starting from the smallest(2^0),the program should print out the decimal value