ReadKey() input question [Answered]
This former does the
points++ on first press, and every other as shown in picture while the following does it every time.Why is that?

{
Console.ReadKey();
points++;
Console.WriteLine(points);
}
while (Console.ReadKey().Key != ConsoleKey.Escape);points++while (true)
{
ConsoleKey key = Console.ReadKey().Key;
if (key == ConsoleKey.Escape)
break;
score++;
Console.WriteLine(score);
}