#include <iostream>
using namespace std;

int main() {
	int SIZE;
	
	cout << "Enter the size of an array\n";
	cin >> SIZE;
	
	int array[SIZE];
	
	for (int i = 0 ; i < SIZE ; i ++)
	{
		array[i] = i*i;
	}
	
	for (int i = 0 ; i < SIZE ; i ++)
	{
		cout << array[i] << endl;
	}
	
	// Array as pointer
	cout << "&SIZE address " << &SIZE << endl;
	cout << "Address of first element " << array << endl;
	cout << "Address of last element " << (array + SIZE - 1 ) << endl;
	return 0;
}