Hello! This quiz consisted on using vectors to receive a list and use a function to obtain the sum of the squares of the values in the list. The tricky part of this test was the size of the list, since it could go from an empty list to several different values. I used the function push_back so the vector would be filled with values until a certain condition was met. 

Here’s the code:

https://github.com/CarlosGallegosT/Codes007/blob/master/q1.cpp

Thanks for watching!

CC BY 4.0 Vectors and squares #Quiz08 by Carlos Gallegos is licensed under a Creative Commons Attribution 4.0 International License.