[Algorithm] BOJ 2438
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int cnt = 2;
for(int i = 0; i < n; i++)
{
for(int j = 1; j < cnt; j++)
{
cout << "*";
}
cnt++;
cout << "\n";
}
return 0;
}
댓글남기기