how do I terminate the program if it falls thru to default?Code:public static void tan_chin() { switch (jw.offspring[10]) { case 1: tan_chin_normal(); break; case 2: tan_chin_steel(); break; case 3: tan_chin_harli(); break; case 4: tan_chin_orange(); break; default: Console.WriteLine("Error! Bad data on 'E' loci. Quitting."); Console.WriteLine("press any key"); Console.ReadKey(); // waits for any key to be pressed break; } return; } // end tan_chin
Main method is void