i know how to make a console read two integers but each integer by it self like this
int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLin
public static class ConsoleInput { public static IEnumerable ReadInts() { return SplitInput(Console.ReadLine()).Select(int.Parse); } private static IEnumerable SplitInput(string input) { return Regex.Split(input, @"\s+") .Where(x => !string.IsNullOrWhiteSpace(x)); } }