코딩테스트/프로그래머스 1단계
프로그래머스 1단계 - 직사각형 별찍기
SICDev
2021. 8. 19. 23:43
반응형
https://programmers.co.kr/learn/courses/30/lessons/12969
import java.util.Scanner;
public 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("");
}
}
}
반응형