題組內容

1. (16%)

(b) Write a recursive function sum(n) to return the summation of the sequence of consecutive integers from 1 to n using any programming language or pseudo- code.(10%)