Console.Read возвращает не то значение - C#
Формулировка задачи:
using System;
namespace MyFirstConsoleApp
{
class Prog
{
static void Main()
{
// ArrayLength;
Console.WriteLine("Please, enter array length:\n");
int ArrayLength = Console.Read();
Console.Write(ArrayLength);
}
}
}Решение задачи: «Console.Read возвращает не то значение»
textual
Листинг программы
int x = Console.ReadKey().KeyChar;