1#include <iostream>
2
3using namespace std;
4
5int main()
6{
7 int i,arr[10],sum=0;
8
9 cout<<"Enter 10 elements:";
10 for(i=0;i<10;++i)
11 cin>>arr[i];
12
13 for(i=0;i<10;++i)
14 sum=sum+arr[i];
15 cout<<"Sum of numbers is:"<<sum;
16
17 return 0;
18}