Hi, I'm new to coding and could use some help. I'm trying to add the sum of some numbers generated by a loop but am really struggling to do so. The loop generates two numbers and repeats the number of times the user inputs. So for example if the user input 4 the loop would generate something like [2 5] [3 6] [1 2] [1 6]. Is there some way to take all the second values or the first values and add them together? So in this case I would want to add 2, 3, 1, and 1 or 5, 6, 2, 6.
I've tried a bunch of different things but I guess I'm just not sure what to do. Any pointers in the right direction would be much appreciated.