new to programming, how do I find the absolute sum of all the values in the array [duplicate]
Clash Royale CLAN TAG#URR8PPP
new to programming, how do I find the absolute sum of all the values in the array [duplicate]
This question already has an answer here:
I am very new to programming, Thanks for any help and sorry if this is in the correct place. I have been trying to do it myself but i am stuck.
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1 Answer
1
Without much detail can only guess as to exactly how you want it set up, but if its just an array of integers can call the sum method off it.
var listofNums = new int[10];
var test = listofNum.Sum();
csharp-examples.net/linq-sum
– Andrew
3 mins ago