#include #include using namespace std; int main() { int a[] { //too lazy to count them 1066, 1492, 1776, 1812, 1914, 1945, 1984, 2001, 2024 }; //int n {end(a) - begin(a)}; //the number of elements in the array const int n {size(a)}; //the number of elements in the array cout << "The array contains " << n << " elements:\n"; for (int i {0}; i < n; ++i) { cout << i+1 << " " << a[i] << "\n"; } return EXIT_SUCCESS; }