문제
답
import java.util.Scanner;
class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
for(int i=0; i<m; i++){
for(int j=0; j<n; j++){
System.out.print("*");
}
System.out.println("");
}
}
}
'Programmers > JAVA' 카테고리의 다른 글
[LEVEL 1] 평균 구하기 (0) | 2021.12.23 |
---|---|
[LEVEL 1] 콜라츠 추측 (0) | 2021.12.23 |
[LEVEL 1] 짝수와 홀수 (0) | 2021.12.23 |
[LEVEL 1] 핸드폰 번호 가리기 (0) | 2021.12.23 |
[LEVEL 1] 행렬의 덧셈 (0) | 2021.12.23 |