You are viewing a single comment's thread. Return to all comments →
c++ solution
int simpleArraySum(vector<int> ar) { int i,sum=0; for(i=0;i<size(ar);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 →
c++ solution