Lists

Grab ink and paper, we’re making lists. “Grocery List” by Brittney Bush Bollay @ https://www.flickr.com/photos/tzofia/145057857/

  1. Write a function called sumsquares_list which receives a vector of int and returns the sum of the squares of the elementes in the list. For example, if we have a vector with the values x with values [1,2,3,4,5], sumsquares_list(x) would return 55 since 1 + 4 + 9 + 16 + 25 is 55.

GitHub link to code answer.

CC BY 4.0 #Quiz08 by Alan S. Olalla is licensed under a Creative Commons Attribution 4.0 International License.