Search code examples
c#textprinting

How do I print text in same line?


I am new to C#. While displaying text, C# prints every piece of text in a new line. But, I would like have all the pieces in the same line like Four Hundred Fifty Eight; kindly refer to the image below.
What should I do ?

enter image description here


Solution

  • Instead of Console.WriteLine(), use Console.Write().