Hello i want help with a scholl excercise about lists in prolog...
It says write a program that will check a list (We give the list, exmp. sort([1,2,3,4,5]). )
when the list is sorted from lower two bigger must return
yes. otherwise no.
this is what i have written so far...
sort([X,Y|T]):-...