seong
백준 2439번 본문
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
sc.close();
for(int i = 1; i <= a; i++){
for(int j = 1; j <= a-i ; j++){
System.out.print(" ");
}
for(int n = 1; n <=i ; n++){
System.out.print("*");
}
System.out.println();
}
}
}