public static void factor() { factorer userFactor = new factorer(); Console.WriteLine("Enter a number you would like the factors of"); int userEntry = Convert.ToInt32(Console.ReadLine()); userFactor.Factor(userEntry); }
static void Main(string[] args) { Console.WriteLine("Select a checkpoint problem (1-5) or press any other key to exit: "); int num = Convert.ToInt32(Console.ReadLine()); //Selectors if (num == 1) //The Divider Program { divider Divider = new divider(); Console.WriteLine("The Number of ints divisible by 3 in 100 is: "); Divider.noRemain(); } if (num == 2) //The Adder Program { adder Adder = new adder(); adder.add(); } if (num == 3) //The Factor Program { factorer Factorer = new factorer(); factorer.factor(); } if (num == 4) //The Random Guesser Program { randomer Randomer = new randomer(); randomer.guess(); } if (num == 5) //The Find Max Program { findMaxer FindMaxer = new findMaxer(); findMaxer.Max(); } Console.ReadLine(); }