2023. 9. 15. 22:22, 알고리즘/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/120823
#include <iostream>
using namespace std;
int main(void) {
int n;
cin >> n;
for(int i=0; i<n; i++){
for(int j=0; j<i+1; j++){
cout<<'*';
}
cout<<'\n';
}
return 0;
}'알고리즘 > 프로그래머스' 카테고리의 다른 글
| Lv 0. 문자 반복 출력하기. (0) | 2023.09.15 |
|---|---|
| Lv 0. 짝수 홀수 개수 (0) | 2023.09.15 |
| Lv 0. 문자열 뒤집기 (0) | 2023.09.15 |
| Lv 0. 배열 뒤집기 - reverse() 함수는 <algorithm> 헤더에 있다. (0) | 2023.09.14 |
| Lv 0. 아이스 아메리카노 (0) | 2023.09.14 |
Comments, Trackbacks
