public Person(int initialAge) {
Console.WriteLine("Age is not valid, setting age to 0.");
Console.WriteLine("You are young.");
else if(this.age >= 13 && this.age <18)
Console.WriteLine("You are a teenager.");
Console.WriteLine("You are old.");
public void yearPasses() {
static void Main(String[] args) {
int[] ages = new int[] {-1, 10, 16, 18};
for (int i = 0; i < T; i++) {
Person p=new Person(age);
for (int j = 0; j < 3; j++) {