Write a recursive function definition for the following function:
//Precondition: n >= 1
//Returns the sum of the squares of numbers 1 through n.
For example, squares(3) returns 14 because 12 + 22 + 32 is 14.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.