- List<int> numbers = new List<int>();
- numbers.Add(3);
- numbers.Add(2);
- numbers.Add(6);
- numbers.Add(-1);
- Console.WriteLine(Sum(numbers));
- numbers.Add(5); numbers.Add(1);
- Console.WriteLine(Sum(numbers));
Know the answer? Post it. Somebody with the same question will find it here.



Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Avnish KumarRank #1,003 · 2K reputationPosted Feb 21, 2020, 8:36 AM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Feb 18, 2020, 12:32 AM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Feb 18, 2020, 12:36 AM EST