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

int main() {
	unsigned int n;
	std::cin >> n;

	double* numbers = new double[n];
	for (unsigned int i = 0; i < n; i++)
		std::cin >> numbers[i];

	for (unsigned int i = n; i > 0; i--)
		std::cout << numbers[i-1] << ' ';
	std::cout << std::endl;

	delete[] numbers;

	return 0;
}