C#C
C#4y ago
hanu

A way to get an integer input quickly?

Recently i'm trying to do competitive programming with C# and i'm curious if there's a way to get an (array of) integer input. The method I all know is this
// for an array of integers
int[] arrayInput = Console.ReadLine().Split(' ').Select(Int32.Parse).ToArray()
// for one integer
int singleInput = Int32.Parse(Console.ReadLine())
Was this page helpful?