알고리즘/백준풀이1. 입출력
(19) [C++] 백준 No.2438 별찍기 - 1
Storage Gonie
2019. 4. 21. 00:23
반응형
문제

풀이
# C++
#include <iostream>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
int N = 0;
cin >> N;
for (int i = 0; i < N ; i++){
for (int j = 0; j < i+1; j++){
cout << "*";
}
cout << endl;
}
}반응형