C# need help, formatException unhandled.
hey community! I am having an issue with my coding. can someone explain to me what am i doing wrong or what does it mean formatException unhandled. Please, trying to dumb it down for me to understand. I am using visual studio community 2015 here's my code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GenerteRndNumAndAccept { class Program { static void Main(string[] args) { bool displayMenu = true; while (displayMenu) { displayQuestion(); } Console.Read(); } public static void displayQuestion() { Random random = new Random(); int x = random.Next(100); Console.WriteLine("please enter this number: " + x); int inputAnswer = Convert.ToInt16(Console.Read()); int y = inputAnswer; if (y == x) { Console.WriteLine("You're correct!"); Console.WriteLine("Enter to continue:"); } else { Console.WriteLine("You're not correct!"); Console.WriteLine("Enter to continue:"); } Console.Read(); } } }