<문제>
<풀이>
<해설>
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++) {
for (int j=0; j<a; j++) {
System.out.print("*");
}
System.out.println();
}
}
}
'[개발] 코딩 테스트_Java' 카테고리의 다른 글
서울에서 김서방 찾기_★☆ (0) | 2022.01.17 |
---|---|
2016년_★☆ (0) | 2022.01.17 |
행렬의 덧셈_★ (0) | 2022.01.17 |
없는 숫자 더하기_★ (0) | 2022.01.15 |
짝수와 홀수_☆ (0) | 2022.01.15 |