<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">natural(1).
natural(N) :- natural(M), N is M+1.

myloop(N) :- N &gt; 0, natural(I), I=&lt;N,
	write(I), nl,
	I = N, 
	!, fail.

myloop2(N) :- N &gt; 0, natural(I), I=&lt;N,
	write(I), nl,
	I = N, !.
</pre></body></html>