Advertisement
Josif_tepe

Untitled

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