I am having trouble how to do this on prolog
The program will ask Input a number of elements: 6
then the user will input 6 numbers , 4, 3, 6, 2, 9, 10
t