public static void Main(string[] args) { int number = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(Q2DigitalRoots.DigitalRoot(number)); Console.WriteLine(); Console.WriteLine("Press enter to exit."); Console.ReadLine(); }
// Q5 public static void TestBestTo100() { int number = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(Q2DigitalRoots.DigitalRoot(number)); Console.WriteLine(); Console.WriteLine("Press enter to exit."); Console.ReadLine(); }