del(i,il,il).del(1,_,[]):-!.del(Num,[X|T],[X|T1]):- Num > 0, N1 is int(N+1), del(N,T,T1).?- del(5,[4,11,-5,8,2,3,9,-5,2,10],L),write(L).
Standard input is empty
prog.pl:3: warning: singleton variables [N1] for del/3 prog.pl:4:4: syntax error: . or operator expected after expression 1 error(s) compilation failed
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!