I created a program that :

1)write by keyboard a number A of 5 number digits

2)write all the combinations ( 2 digit ) using digits of number A

3)order the combinations

MY PROGRAM DO ALL THIS , but i don't know how to limit the combinations from 4 digits to 2 digits. thanks anf sorry for my bad english!!