VioletaBabel

2438번: 별찍기 - 1 본문

백준/백준-C++
2438번: 별찍기 - 1
Beabletoet 2017. 1. 27. 10:52

#include <iostream>

#include <string.h>

using namespace std;

int main()

{

int a;

cin >> a;

for (int i = 0; i < a; ++i)

{

for (int j = -1; j < i; ++j)

cout << "*";

cout << endl;

}

}

'백준 > 백준-C++' 카테고리의 다른 글

1193번: 분수찾기  (0) 2017.01.27
2292번: 벌집  (0) 2017.01.27
10809번: 알파벳 찾기  (0) 2017.01.27
2675번: 문자열 반복 (실패)  (0) 2017.01.27
1157번: 단어 공부  (0) 2017.01.27
Comments