Advertisement
Josif_tepe

Untitled

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