2
Answers

C# string : how to store data on a new line in string variable.

Prince Silva

Prince Silva

13y
2.4k
1
how to store data on a new line in string variable. 

eg:

string str = "sentence 1";
str +="sentence 2";

Currrent output :
sentence 1 sentence 2

Desired Output :
sentence 1 
sentence 2
Answers (2)