Complete the code to print a line with a new line at the end.
Console.[1]("Hello, world!");
The WriteLine method prints the text and moves to the next line.
Complete the code to print text without moving to a new line.
Console.[1]("Hello, "); Console.WriteLine("world!");
The Write method prints text but stays on the same line.
Fix the error in the code to print two lines correctly.
Console.[1]("First line"); Console.[1]("Second line");
To print two separate lines, use WriteLine for both so each ends with a new line.
Fill both blanks to print numbers 1 to 3 on the same line separated by spaces.
for (int i = 1; i <= 3; i++) { Console.[1](i + " "); } Console.[2]();
Use Write inside the loop to print numbers on the same line, then WriteLine to move to the next line after the loop.
Fill all three blanks to print a greeting with a name on the same line.
string name = "Alice"; Console.[1]("Hello, "); Console.[2](name); Console.[3]("!");
Use Write for all parts to print on the same line without moving to a new line.
