Input on same line as output in C#
Use System.Console.Write
instead of System.Console.WriteLine
It would be
Console.Write("Input a number: ");
// It will return the entire string after the user hits enter
string theNumber = Console.ReadLine();
int number = 0;
if(int.TryParse(theNumber, out number))
{
// Do something with the number
}