Untitled

mail@pastecode.io avatar
unknown
c_cpp
3 years ago
331 B
1
Indexable
Never
#include <iostream>

using namespace std;

int main()
{
    int x1, x2, x3, x4, x5;
    cin >> x1;
    cin >> x2;
    cin >> x3;
    cin >> x4;
    cin >> x5;
    
    int zbir = 0;
    zbir += x1 / 2;
    zbir += x2 / 2;
    zbir += x3 / 2;
    zbir += x4 / 2;
    zbir += x5 / 2;
    
    cout << zbir << endl;
 
    return 0;
}