Beakjoon&프로그래머스/Java
[프로그래머스/Java] 직사각형 별찍기
현장
2025. 2. 25. 17:15
-Code
import java.util.Scanner;
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++) {
System.out.println("*".repeat(a));
}
}
}