// A typical-looking console application.
// Only two differences: include "GraphicsMagician.h"
// and: Machine.Start()
#include "GraphicsMagician.h"

// function prototypes here
int larger(int m, int n);

int main()
{
    Machine.Start();

    // declare some variables
    int number1, number2, product, big;
    
    // get a couple of numbers from the user
    cout << "Enter a number:";
    cin >> number1;
    cout << "Enter another:";
    cin >> number2;

    // compute and print the product
    product = number1 * number2;
    cout << number1 << " times " << number2
        << " is " << product << endl;

    // call a function to get the larger number
    big = max(number1, number2);
    cout << big << " is the larger of the two numbers" << endl;

    // pause for a keypress before going away
    getch();
    return 0;
}

// a function that returns the larger of two integers
int larger(int m, int n)
{
    if (m > n)
        return m;
    else
        return n;
}