/***************************************
 4a_main.cpp

 Example source file for section 4a
 of the LoomSoft article: Organizing your Project

 Web: http://loomsoft.net
 Email: jay@loomsoft.net
***************************************/

#include <iostream.h> //Required header file for i/o streams

void ask_question() // A function to ask a question
{
	int age = 0; // Declare an integer called age, which we use to store input
	cout << "What is your age:"; // Out put the question phrase
	cin >> age; // Input the typed in number into the variable age 
	cout << "Wow, you're " << age << " years old!" << endl; // Output a nice little message
} 

int main() // The main function. This is where the program starts
{
	cout << "Hello world!" << endl; // Output a hello statement
	ask_question(); // Call the function called ask_question.
	return(0); 
} 