2439 자바

    백준 2439 (별 찍기 - 2)

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); // 몇 a번째 줄까지 출력할지 입력 for (int i=1; i0; j--) { // a-i 만큼 공백 출력 System.out.print(" "); } for (int k=1; k