rengetsu

ProcedurProgramavimas_2.01

Mar 12th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int n, z[11], sum=0;
  5. cin>>n;
  6. for(int i=0;i<n;i++)
  7. {
  8.   cin>>z[i];
  9.   sum+=z[i];
  10. }
  11. cout<<sum<<endl;
  12. return 0;
  13. }
Add Comment
Please, Sign In to add comment