2438 별찍기

마스터피스·2024년 2월 1일

코딩테스트 문제

목록 보기
7/21
post-thumbnail
#include <iostream>
using namespace std;


int main(void) {



    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int a;
    cin >> a;
    for (int i = 1; i <= a; i++) {
        for (int k = 1; k <= i; k++) {
            cout << "*";

        }cout << '\n';
    }


    return 0;


}
profile
코딩 일지

0개의 댓글