Question: Write a function using LISP, named sum, that takes an integer n and returns the summation of n and all positive integers precedeing it; e.g.,
Write a function using LISP, named sum, that takes an integer n and returns the summation of n and all positive integers precedeing it; e.g., passing 5 will return 15, which is 1+2+3+4+5.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
