#include<iostream.h>
main()
{
int n,sum=0;
cout<<how many numbers ?;
cin>>n;
int arr[n];
cout<<enter <<n<< numbers;
for(i=0;i<n;i++)
{
cin>>arr[i];
sum+=arr[i];
}
cout<<sum is <<sum;
}#include <iostream>
using namespace std;
int main() {
// your code goes here
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0uaD4KbWFpbigpCnsKCWludCBuLHN1bT0wOwoJY291dDw8aG93IG1hbnkgbnVtYmVycyA/OwoJY2luPj5uOwoJaW50IGFycltuXTsKCWNvdXQ8PGVudGVyIDw8bjw8IG51bWJlcnM7Cglmb3IoaT0wO2k8bjtpKyspCgl7CgkJY2luPj5hcnJbaV07CgkJc3VtKz1hcnJbaV07CgkgfSAKCSBjb3V0PDxzdW0gaXMgPDxzdW07Cn0jaW5jbHVkZSA8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9