프로그래머스LV1 - 직사각형 별찍기

Kong-al·2022년 10월 11일
0

프로그래머스LV1 - 직사각형 별찍기

[ 답안 ]

class Solution {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        for(int i = 0 ; i < b ; i++){
            for(int j =0 ; j < a ; j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
profile
웹개발 공부중!(❁´◡`❁)

0개의 댓글