Home > front end >  Can I change the look of my terminal when I run a program?
Can I change the look of my terminal when I run a program?

Time:12-30

I am learning C# and I am tryin to print a list of names in my terminal but they all come out on to one line.

Code:

List<string> employees = new List<string>() { "adam", "amy" };
      employees.Add("barbara");
      employees.Add("barbara");

      for (int i = 0; i < employees.Count; i  )
      {
        Console.Write(employees[i]);
      }

terminal: terminal

How do I change my terminal to look better and print each name and future objects on to separate lines so that way I am able to read it better?

What I tried doing was downloading a formatter and also changed the settings in the settings.json and expected the list of names to come out like expected terminal

CodePudding user response:

Use Console.WriteLine:

Writes the specified data, followed by the current line terminator, to the standard output stream.

  • Related