// @topic W02-0-010 procedural (structural) programming
// @brief Simple input/output with cin and cout in C++ and & address-of

#include <iostream>
#include <cstdlib>

// Procedural (structural) programming uses
// functions as placeholders for computations
// and global variables to store data

int age = 0; // global variable that lives in global scope

int main()
{
    std::cout << "What is your age: ";
    std::cin >> age;
    std::cout << "you are " << age << " years old\n";
    std::cout << "your variable is at location " << &age << "\n";

    system("pause");
    return 0;
}