static void Main(string[] args) { age Child = new age(); do { do { Console.WriteLine("Please type the age of the father"); }while(!int.TryParse(Console.ReadLine(), out Child.age_of_dad)); }while(Child.age_of_dad < 13); do { do { Console.WriteLine("Please type the age of the mother"); }while(!int.TryParse(Console.ReadLine(), out Child.age_of_mom)); }while(Child.age_of_mom < 13); do { do { Console.WriteLine("Please type the age of the child"); }while(!int.TryParse(Console.ReadLine(), out Child.age_of_child)); }while(Child.age_of_child > Child.age_of_mom - 13); Child.child(); Console.ReadKey(); }