[프로그래머스] [LV1] 직사각형 별찍기
업데이트:
📚 직사각형 별찍기
링크📎 : https://programmers.co.kr/learn/courses/30/lessons/12969?language=java
난이도 ⭐️
📖 문제
📝 내 풀이
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int col = sc.nextInt();
int row = sc.nextInt();
for(int i = 0; i < row; i++){
for(int j = 0; j < col; j++)
System.out.print("*");
System.out.println("");
}
}
}
끝-!
댓글남기기