From Console.Read
method
The Read method blocks its return while you type input characters; it terminates when you press the Enter key. Pressing Enter appends a platform-dependent line termination sequence to your input (for example, Windows appends a carriage return-linefeed sequence). Subsequent calls to the Read method retrieve your input one character at a time. After the final character is retrieved, Read blocks its return again and the cycle repeats.
As a solution, you can use Console.ReadLine()
method and parse them to int
with Int32.Parse
or Int32.TryParse
methods like;
int bign, n, t;
Console.WriteLine("put N");
string s1 = Console.ReadLine();
Console.WriteLine("put n");
string s2 = Console.ReadLine();
Console.WriteLine("put t");
string s3 = Console.ReadLine();
Int32.TryParse(s1, out bign);
Int32.TryParse(s2, out n);
Int32.TryParse(s3, out t);