I have the program written but I'm getting a 0 instead of the age I entered.
#include <iostream>
using namespace std;;
//function prototype
void getAge(int);
int main()
{
//declare variable
int age = 0;
//call function to get the age
getAge(age);
//display the age
cout << "You are " << age << " years old." << endl;
return 0;
} //end of main function
//*****function definitions*****
void getAge(int years)
{
cout << "Enter an age: ";
cin >> years;
} //end of getAge function