Website Summary Files Commits Branches @commit @diff @stats
path: root / Week05 / Exercise15.cpp
blob: 6a874bc0fa51c25fe134faf4be200619b368cc71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>

int main() {
    const unsigned int SIZE = 12;

    double numbers[SIZE];
    for (unsigned int i = 0; i < SIZE; i++) {
        std::cin >> numbers[i];
    }

    for (unsigned int i = 0; i < SIZE / 2; i++) {
        std::cout << numbers[i] << ' ' << numbers[SIZE - 1 - i] << std::endl;
    }

    return 0;
}