i am a beginner and use swi-Prolog. Can someone tell me why this piece of code doesn't work?
inp:- write('Enter the string'),nl,read(X),write(X).
abc:- subtract(X,['at','in','to','of'],L),write(L).
I keep getting the Singleton Variable[X] error. Thanks.