#include <iostream>
using std::cout;
using std::cin;

void print_hello(char name[20], int n)
{
    int i;
    for (i = 0; i < n; i++)
    {
        cout << i << " Hello, " << name << "!\n";
    }
}

int main (void)
{
    int iterations;
    cout << "How many iterations?\n";
    cin >> iterations;
    if (cin.fail())
    {
        cout << "bad input for iterations\n";
        exit(1);
    }
    print_hello("Cameron", iterations);
    
    return 0;
}

