Hello World!

    [C#] C#의 기본적인 출력문과 이스케이프 시퀀스

    [C#] C#의 기본적인 출력문과 이스케이프 시퀀스

    using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); //Hello World! 출력 후 줄바꿈 Console.WriteLine("a=10"); //a=10 출력 후 줄바꿈 Console.WriteLine("b=20"); //b=20 출력 후 줄바꿈 Console.Write("a+b = "); //a+b = 출력 Console.WriteLine(10 + 20); //10+20을 계산한 값 출력 후 줄바꿈 // +분만 아니라 - * / % 또한 사용이 가능하다 Console.WriteLine("Hello \tWorld"); // \t를 사용 ..