본문 바로가기
C++

[프로그래머] 문자열 반복해서 출력하기

by 띰쥬 2025. 8. 26.
728x90
반응형
SMALL

#include <iostream>
#include <string>

using namespace std;

int main(void) {
    string str;
    int n;
    cin >> str >> n;
    for(int i=0; i<n; i++)
    {
        cout << str;
    }
    return 0;
}

728x90
반응형
LIST

댓글