Which escape sequence can be used to indicate the cursor should advance to the next line?
a. newline
b. escape next
c. \n
d. \newline
e. \r
Correct Option : c. \n
Ex:
using System;
namespace Newline
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello" + "\n" + "World");
Console.ReadLine();
}
}
}
output:
Hello
World