You are viewing a single comment's thread. Return to all comments →
This is simple and gets the job done.
int sum=0,i,size,array[1000]; scanf("%d",&size); for(i=size;i>=0;i--) { scanf("%d",&array[i]); } for(i=size;i>=0;i--) { sum+=array[i]; } printf("%d",sum); return 0;
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 →
This is simple and gets the job done.