using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Baekjoon
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
for (int i=0; i < n; i++)
{
StringBuilder builder = new StringBuilder();
for (int j = 0; j <= i; j++)
{
builder.Append("*");
}
Console.WriteLine(builder);
}
}
}
}
StringBuilder sb = new StringBuilder();
- 변경가능한 문자열을 나타내는데 사용하는 클래스
- 참조 값이 변경되지 않고 힙 메모리에서 값 삽입, 추가, 제거
System.Text
네임스페이스 객체
- 메서드
Append()
Insert()
Remove()
Replace()