[Solved] Throwing an exception at line16 [closed]
Instead of ch = Convert.ToChar(Console.ReadKey()); You should put it as ch = Console.ReadKey().KeyChar; Since ConsoleKeyInfo instance which is returned by Console.ReadKey() can’t be just converted into char 4 solved Throwing an exception at line16 [closed]