You are viewing a single comment's thread. Return to all comments →
int main() { int n; scanf("%d", &n); int array[n], sum=0; for(int i=0; i<n; i++) { scanf("%d", &array[i]); sum += array[i]; } printf("%d", sum); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
1D Arrays in C
You are viewing a single comment's thread. Return to all comments →