c# Console.WriteLine(~~~), Console.Write(~~)

콘솔창에 글자쓰는함수
printf랑 비슷

Console.WriteLine("adfsdfd");
Console.WriteLine("a:{0} b:{1} a+b:{2}", a, b, a+b);
Console.Write("a:"+a+" b:"+b+" a+b:"+(a+b));
출력방법

Leave a Reply

Your email address will not be published. Required fields are marked *

 characters available

4 + 1 =