换行符'/ n'将被打印而不是拆分为换行符

-2 c# console-application

为了澄清,我理解我可以使用:

Console.WriteLine("sample text")
Run Code Online (Sandbox Code Playgroud)

为了获得理想的效果,尽管如此,我正在使用的代码应该可以工作,我想知道为什么它不是.

代码示例:

Console.Write("You have chosen {0}, the game will now begin.{1} Newline.", x_or_o, "/n");
Run Code Online (Sandbox Code Playgroud)

我在控制台中收到的输出是:

You have chosen x, the game will now begin./n Newline.
Run Code Online (Sandbox Code Playgroud)

而我想要的输出是:

You have chosen x, the game will now begin.
Newline.
Run Code Online (Sandbox Code Playgroud)

对不起,如果我遗漏了一些基本或明显的东西,但我的搜索引擎优化和谷歌搜索都没有解决方案.

所有答案都提前感谢,谢谢您的时间.

Ken*_*eth 5

换行格式化器\n不是/n