Thank you.... This is what I came up with that worked.
Code:int sum = 0; for (int i : arr) { sum += i; } return sum;
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |