Hello i try to write recursion that count down like this
in prolog language
i tried to do some code like this:
down(Y,X):- Y>0,K is Y-1,down(K,X).
but its return "false." i dont know why its return boolean result... its need to insert into X the K value... and generaly how to make a recursion that return all the time some number...
what i need to do?
tnx a lot