alternative ways to display a list
- by joshua
Hi everyone,
I know on how to display a list by using loop.
For example,
choice(a):-write('This is the top 15 countries list:'),nl,
loop(X).
loop(X):-country(X),write(X),nl,fail.
Unfortunately,I don't know on how to display list by using list.anyone can guide me?