[백준] 3단계 | 반복문
백준 2438 별을 따다 – 1 (BufferedReader로 응답) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String() args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); //br.readLine() 문자형 for(int i=1; i<=n; i++) { for(int j=1; j<=i; j++) { System.out.print(“*”); } System.out.println(); } } } for(int … Read more