Hunter1895
Hunter1895
CC#
Created by Hunter1895 on 4/28/2023 in #help
❔ 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?
17 replies