❔ Practicing Arrays
Console.Write("How many numbers do you want?: ");
int numberChoice = Console.Read();
if (numberChoice == 2)
{
Console.WriteLine("Which numbers are they?");
int numPick1 = Console.Read();
int numPick2 = Console.Read();
}
else
{
Environment.Exit(0);
}
Hi! I enter 2 when prompted for numberChoice. It exits instead of going to if. What am I doing wrong?