You are viewing a single comment's thread. Return to all comments →
unsigned long int sum=0; int n,i; cin>>n;
int a[1000]; for(i=0;i<=n;i++) { cin>>a[i]; sum+= a[i]; } cout<<sum<<" "<<endl; return sum; }
Seems like cookies are disabled on this browser, please enable them to open this website
A Very Big Sum
You are viewing a single comment's thread. Return to all comments →
unsigned long int sum=0; int n,i; cin>>n;