Given the number system in mathematics and computing. Write a program to list all the numbers with bases/radix of {2,3,4,5,6,7,8,9,10} and a given number of digits (it can be any digits). So, the inputs are one of the bases listed above and the number of digits for a given base.