Check out example codes for "read in multiple numbers c#". It will help you in understanding the concepts better.

Code Example 1

//Read line, and split it by whitespace into an array of strings
string[] tokens = Console.ReadLine().Split();

//Parse element 0
int a = int.Parse(tokens[0]);

//Parse element 1
int b = int.Parse(tokens[1]);

Learn ReactJs, React Native from