sumN(0,0).
sumN(N,Sum) :-
	N > 0, M is N - 1, sumN(M, Temp), Sum is Temp + N.
