adding line break

后端 未结 7 1955
有刺的猬
有刺的猬 2020-12-05 14:13

I have a problem with adding line break in a string. I have tried using \"\\r\\n\", and Environment.NewLine also does not work.

FirmNames = \"\";

foreach (v         


        
相关标签:
7条回答
  • 2020-12-05 14:40

    \n in c3 working correctly

    using System; namespace testing2

    public class Test { 
        public static void Main(string[] args) {
            Console.WriteLine("Enter your name");
            String s = Console.ReadLine();
            Console.WriteLine("Your name is " + s + "\n" + "Thank You");
        }
    }
    
    0 讨论(0)
提交回复
热议问题