Convert any base to Base 10

This takes any number as an input as long as it meets the conditions. Then from whatever base the user chooses, the program will convert it to base 10