// age.cpp
//
// This program does not work!  Can you find the errors?
// (Thanks to Fall 2001 CS 111 tutor Cheuk Yip for writing first draft.)

#include<iostream>

using namespace std;

int main()
{
   cout << "Please enter your age:>";

   int age;
   cin >> age;

   if ( age < 0 )
      cout << "You are not even born yet." << endl;
   else if ( age >= 18)  {
      if(age > 64)
         cout << "You are a senior adult." << endl;
      else
         cout << "You are an adult."<<endl;
      cout << "You are old enough to vote."<< endl;
   } else
      if(age <= 12)
         cout<< "You are a child." << endl;
      else
         cout << "You are a teenager." << endl;
      cout << "You are too young to vote."<< endl;
   return 0;
}  // function main