직사각형 별찍기

NJW·2021년 8월 15일
0

코테

목록 보기
41/170

간단한 별찍기 문제다.

#include <iostream>

using namespace std;

int main(void) {
    int a;
    int b;
    cin >> a >> b;
    
    for(int i = 0; i < b; i++){ //3
        for(int j = 0; j < a; j++){ //5
            cout<< "*";
        }
        cout << endl;
    }

    return 0;
}
profile
https://jiwonna52.tistory.com/

0개의 댓글