You are viewing a single comment's thread. Return to all comments →
for C# answer:
int sum =0; for(int i = 0; i < ar.Length; i++){ sum += ar[i]; } return sum;
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Array Sum
You are viewing a single comment's thread. Return to all comments →
for C# answer:
int sum =0; for(int i = 0; i < ar.Length; i++){ sum += ar[i]; } return sum;