- 3

Can some one help with the code for doing summation using a for loop?

9th Mar 2017, 4:57 PM
itumeleng
itumeleng - avatar
1 Odpowiedź
+ 2
int sum = 0; for(int i = 0; i < arraySize; i++){ sum += array[i]; } cout << sum << endl;
12th Mar 2017, 8:13 PM
Michael Szczepanski
Michael Szczepanski - avatar