how to take integer input in C# code example
Example 1: c# input integer
int chosenNumber = int.Parse(Console.ReadLine());
Example 2: asking for user input integer c#
int intTemp = Convert.ToInt32(Console.ReadLine());
int chosenNumber = int.Parse(Console.ReadLine());
int intTemp = Convert.ToInt32(Console.ReadLine());