You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { int n; int i; cin>>n; long int arr[n]; long int sum=0; for( i=0;i>arr[i];
} for(i=0;i<n;i++) { sum=sum+arr[i]; } cout<<sum; return 0;
}
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 →
include
using namespace std;
int main() { int n; int i; cin>>n; long int arr[n]; long int sum=0; for( i=0;i>arr[i];
}