how can i start writing a program that if there's two dice, and the user inputs the number of faces for the dice (6 is usually the case), then it will list all the possible combinations?

e.g. input = 6
output = 66,65,64,63,62,61,54,53,52,51,43....
but the 61 = 16

i know this program involves recursion as well.. but I still need some advice, thanks!!!