public static void Program13() { Console.WriteLine("Reading from file:"); string[] LargeNumbers = Helper.readLinesFromFile(@"C:\Users\ddesai\Desktop\LargeSum.txt"); Console.WriteLine("File read sucessful."); Console.WriteLine(Program2to20.LargeSum(LargeNumbers)); }
public static void Program11() { Console.WriteLine("Enter File Location:"); string[] fileContent = Helper.readLinesFromFile(FileName: Console.ReadLine()); Console.WriteLine("Read from file sucessful."); int[,] grid = Helper.CreateMatrixOfIntegers(fileContent); Console.WriteLine("Grid Created"); Console.WriteLine("Enter the number of numbers you want to multiple."); Console.WriteLine(Program2to20.LargestProductInMatrix(grid, noOfNumbers: Convert.ToInt32(Console.ReadLine()))); }
public static void Program17() { Console.WriteLine("Number Letter Count:"); Console.WriteLine("Enter the maxLimit:"); Console.WriteLine("Sum of letter: " + Program2to20.AllNumberLetterCount(Convert.ToInt32(Console.ReadLine()))); }
public static void Program16() { Console.WriteLine("Power Digit Sum:"); Console.WriteLine("Enter the Power:"); Console.WriteLine("Sum of digits: " + Program2to20.SumOfDigits(Convert.ToInt32(Console.ReadLine()))); }
public static void Program15() { Console.WriteLine("Lattice paths:"); Console.WriteLine("Enter Grid size:"); Console.WriteLine("No of Lattice paths is : " + Program2to20.LatticePaths(Convert.ToInt32(Console.ReadLine()))); }
public static void Program14() { Console.WriteLine("Longest Collatz Sequence:"); Console.WriteLine("Enter the number under:"); Console.WriteLine(Program2to20.LongestCollatzSequenceUsingHashTable(Convert.ToInt64(Console.ReadLine()))); }
public static void Program12() { Console.WriteLine("Highly divisible triangular Number:"); Console.WriteLine("Enter the number of divisors we want:"); Console.WriteLine(Program2to20.highlyDivisibleTriangleNumbers(Convert.ToInt64(Console.ReadLine()))); }