Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In this case, the number with index 2 is not taken into account in the amount, and 4 is taken into account
var numbers = [1,-3,5,-6,-10,13,4,-8];
var sum = numbers[3..4].Sum();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question