You are viewing a single comment's thread. Return to all comments →
int main() {
int num1,num2,i,j,sum=0; scanf("%d",&num1); int arr1[num1]; for(i=0;i<=num1;i++){ scanf("%d",&arr1[i]); } for(i=0;i<num1;i++){ sum+=arr1[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 →
int main() {
}