Good afternoon, everybody, I teach C # and try to understand what the error is.
namespace OWKiller { class Program { static void Main(string[] args) { int processnum = 0; Console.WriteLine("CSGO #1 Overwatch #2"); Console.WriteLine(processnum); processnum = Console.Read(); Console.WriteLine(processnum); Console.ReadKey(); // { // foreach (var process in Process.GetProcessesByName("Overwatch")) // { /// process.Kill(); // } // } // } } } } If I write in console 1 then the compiler shows that I entered 49 and if 2 then the compiler shows 50, what is the reason? why instead of 1 and 2 it shows 49 and 50?