로딩
요청 처리 중입니다...

[자바] 백준알고리즘 2439번 별 찍기 - 2 (B4)

 [자바] 백준알고리즘 2439번 별 찍기 - 2 (B4)

// 2022-07-13 // 별 찍기 - 2 import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { int N; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); N = Integer.parseInt(br.readLine()); for(int i=1; i<=N; i++) { for(int j=1; j<=N-i; j++) { System.out.print(" "); } for(int j=1; j<=i; j++) { System.out.print("*"); } System.out.println(""); } } } https://www.acmicpc.net...

# for문 # java # 반복문 # 백준2439 # 백준별찍기2 # 백준알고리즘2439 # 별찍기2 # 자바