Notice
Recent Posts
Recent Comments
Link
๊ด€๋ฆฌ ๋ฉ”๋‰ด

Everything has an expiration date

Programmers - Lv. 0 : ๋ฌธ์ž์—ด ๋ฐ˜๋ณตํ•ด์„œ ์ถœ๋ ฅํ•˜๊ธฐ ๋ณธ๋ฌธ

Programmers/[Java] Lv. 0

Programmers - Lv. 0 : ๋ฌธ์ž์—ด ๋ฐ˜๋ณตํ•ด์„œ ์ถœ๋ ฅํ•˜๊ธฐ

Jelly-fish 2023. 9. 18. 23:44

import java.util.Scanner;

public class Solution {
    public static void main(String[] args) 
    {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int n = sc.nextInt();
        
        for(int i = 0; i < n ; i++)
        {
            System.out.print(str);
        }
    }
}

๐Ÿ™