Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- squareSum(1,1).
- squareSum(N,S):-
- N > 1,
- N1 is N-1,
- squareSum(N1,S1),
- S is N*N + S1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement