/* */ public void exercise1Point13() { // done in prevoius exercise 1.12 itself..please do refer/. ex1Point12 obj = new ex1Point12(); obj.exercise1Point12(); }
static void Main(string[] args) { string yesOrNo; do { Console.Write("Please Enter Exercise Number"); String num = Console.ReadLine(); int val = Convert.ToInt16(num); if (val == 1) { ex1Point1 ex1p1 = new ex1Point1(); ex1p1.exercise1Point1(); } else if (val == 2) { ex1Point2 ex1p2 = new ex1Point2(); ex1p2.exercise1Point2(); } else if (val == 3) { ex1Point3 ex1p3 = new ex1Point3(); ex1p3.exercise1Point3(); } else if (val == 4) { ex1Point4 ex1p4 = new ex1Point4(); ex1p4.exercise1Point4(); } else if (val == 5) { ex1Point5 ex1p5 = new ex1Point5(); ex1p5.exercise1Point5(); } else if (val == 6) { ex1Point6 ex1p6 = new ex1Point6(); ex1p6.exercise1Point6(); } else if (val == 7) { ex1Point7 ex1p7 = new ex1Point7(); ex1p7.exercise1Point7(); } else if (val == 8) { ex1Point8 ex1p8 = new ex1Point8(); ex1p8.exercise1Point8(); } else if (val == 9) { ex1Point9 ex1p9 = new ex1Point9(); ex1p9.exercise1Point9(); } else if (val == 10) { ex1Point10 ex1p10 = new ex1Point10(); ex1p10.exercise1Point10(); } // continued on 1/10/2014 else if (val == 11) { ex1Point11 ex1p11 = new ex1Point11(); ex1p11.exercise1Point11(); } else if (val == 12) { ex1Point12 ex1p12 = new ex1Point12(); ex1p12.exercise1Point12(); } else if (val == 13) { ex1Point13 ex1p13 = new ex1Point13(); ex1p13.exercise1Point13(); } else if (val == 14) { ex1Point14 ex1p14 = new ex1Point14(); ex1p14.exercise1Point14(); } else if (val == 15) { ex1Point15 ex1p15 = new ex1Point15(); ex1p15.exercise1Point15(); } else if (val == 16) { ex1Point16 ex1p16 = new ex1Point16(); ex1p16.exercise1Point16(); } else if (val == 17) { ex1Point17 ex1p17 = new ex1Point17(); ex1p17.exercise1Point17(); } else if (val == 18) { ex1Point18 ex1p18 = new ex1Point18(); ex1p18.exercise1Point18(); } else if (val == 19) { ex1Point19 ex1p19 = new ex1Point19(); ex1p19.exercise1Point19(); } else if (val == 20) { ex1Point20 ex1p20 = new ex1Point20(); ex1p20.exercise1Point20(); } else if (val == 27) { ex1Point27 ex1p27 = new ex1Point27(); ex1p27.exercise1Point27(); } else if (val == 35) { ex1Point35 ex1p35 = new ex1Point35(); ex1p35.exercise1Point35(); } else if (val == 36) { ex1Point36 ex1p36 = new ex1Point36(); ex1p36.exercise1Point36(); } else if (val == 37) { ex1Point37 ex1p37 = new ex1Point37(); ex1p37.exercise1Point37(); } else { Console.Write(" Oops No exercise found @ this number"); Console.ReadLine(); } // to continue the looping.. Console.Write("Do you want to continue .y/n"); yesOrNo = Console.ReadLine().ToString(); }while (yesOrNo.Equals("y")); }