package ch.programmers;
/*
스킬 체크 테스트 Level.1
이 문제에는 표준 입력으로 두 개의 정수 n과 m이 주어집니다.
별(*) 문자를 이용해 가로의 길이가 n, 세로의 길이가 m인 직사각형 형태를 출력해보세요.
*/
import java.util.Scanner;
public class Algorithm11 {
class Solution {
public 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();
}
}
}
}
'Algorithm > 프로그래머스' 카테고리의 다른 글
| 프로그래머스 Summer/Winter Coding(2019) 멀쩡한 사각형 (0) | 2022.08.14 |
|---|---|
| 프로그래머스 월간 코드 첼린지 시즌2 약수의 개수와 덧셈 (0) | 2022.08.13 |
| 프로그래머스 스킬 체크 테스트 (0) | 2022.08.13 |
| 프로그래머스 숫자 문자열과 영단어 (0) | 2022.08.10 |
| 프로그래머스 없는 숫자 더하기 (0) | 2022.08.09 |