[Solved] Throwing an exception at line16 [closed]
[ad_1] 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 [ad_2] solved Throwing an exception at line16 [closed]