Compute sum of cubes for a given range

Problem Statement


Compute the sum of cubes for a given range a through b.

Write a method called sum_of_cubes to accomplish this task

Example Given range 1 to 3 the method should return 36

Hint

Use Enumerable#inject

Output Window


Reading list for this problem

Congratulations, guest!


% of the book completed

or