Uncategorized

[알고리즘] 직사각형 별 찍기

import java.util.Scanner;
import java.util.*;
import java.util.stream.*;

public class Solution {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        IntStream.range(0,b).forEach((bI)->{
            if(bI>0) System.out.println();
            IntStream.range(0,a).forEach((aI)->{
                System.out.print("*");
            });
        });
    }
}
https://github.com/imkim1893/algorithms/blob/master/%EC%A7%81%EC%82%AC%EA%B0%81%ED%98%95%EB%B3%84%EC%B0%8D%EA%B8%B0.java