+ 1

How do I write a line down in a string?

I want to write like this: "hello world" but if I press enter it causes error

15th Apr 2017, 8:07 PM
Augusto
4 Answers
+ 26
Console.WriteLine("hello\nworld"); \n for new line
15th Apr 2017, 8:15 PM
Illusive Man
Illusive Man - avatar
+ 25
if user input then make 2 Console.ReadLine(); for each line. if output - just "bla\nbla"
15th Apr 2017, 8:13 PM
Illusive Man
Illusive Man - avatar
0
it isnt user input, I want to print a string with some downlines, if its possible
15th Apr 2017, 8:14 PM
Augusto
0
oh, the \n thing, ty
15th Apr 2017, 8:16 PM
Augusto