printN(0).
printN(N) :- N > 0, M is N - 1, printN(M), writeln(N).
