This was kind of hard to do the right way. I tried to ask the user for numbers separately and then do calculations with all of these as variables before realising it was kind of wrong so I read the List chapter and understood how to use loops for it. In this way, my code is based off the book and Carmina’s code since it is so good an easy to understand.

Screen Shot 2015-10-28 at 7.15.40 PM

CC BY 4.0 WSQ10 by 5nbpppkkyj is licensed under a Creative Commons Attribution 4.0 International License.