Untitled

public
yousefkarem91 Sep 15, 2024 Never 49
Clone
C++ paste1.cpp 12 lines (12 loc) | 235 Bytes
1
#include <bits/stdc++.h>
2
using namespace std;
3
int main() {
4
int x=0,sum=0;
5
int nOofelemnets;
6
cin>>nOofelemnets;
7
for(int i=1;i<=nOofelemnets;i++) {
8
cin>>x;
9
sum+=x;
10
}
11
cout<<sum<<'\n';
12
}