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