private static bool BoolMenu() { Menu.MainMenu(); switch (Console.ReadLine()) { case "1": ExerciseOne.DisplayVectorThree(); Continue(); return(true); case "2": ExerciseTwo.MinMaxInArray(); Continue(); return(true); case "3": ExerciseThree.NegativePosition(); Continue(); return(true); case "4": ExerciseFour.StringToArray(); Continue(); return(true); case "5": ExerciseFive.EvenToUpper(); Continue(); return(true); case "6": ExerciseSix.AdditionDoubleToVector(); Continue(); return(true); case "7": ExerciseSeven.SentenceToWordsArray(); Continue(); return(true); case "8": ExerciseEight.EqualCharMatrix(); Continue(); return(true); case "0": return(false); default: Console.WriteLine(" Error: invalid selection"); Continue(); return(true); } }
private static bool BoolMenu() { Menu.MainMenu(); switch (Console.ReadLine()) { case "1": ExerciseOne.Asignare(); Continue(); return(true); case "2": ExerciseTwo.IsCompiling(); Continue(); return(true); case "3": ExerciseThree.WhatAndWhy(); Continue(); return(true); case "4": ExerciseFour.SumIs(); Continue(); return(true); case "5": ExerciseFive.EnFactorial(); Continue(); return(true); case "6": ExerciseSix.MinOfThree(); Continue(); return(true); case "7": ExerciseSeven.EvenOrOdd(); Continue(); return(true); case "8": ExerciseEight.DayOfTheWeek(); Continue(); return(true); case "9": ExerciseNine.FirstFourSumsOfDivisors(); Continue(); return(true); case "10": ExerciseTen.DepositCalculator(); Continue(); return(true); case "11": ExerciseEleven.SecondsConverter(); Continue(); return(true); case "0": return(false); default: Console.WriteLine(" Error: invalid selection"); Continue(); return(true); } }