+ 1
Can you help me to find the sum of numbers using array in C++?
3 Answers
+ 1
in for loop you should always initialize variable with 0; in your case int x = 0;
0
Can you please rewrite the very code for me?
- 1
You have to assign the input variables to the array
myArr[0] = a;
for example
also there is a ; missing in the loop