MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/Java

[2439/JAVA] ๋ณ„ ์ฐ๊ธฐ - 2

HYEJU01 2021. 9. 7. 01:07
import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        for (int i = 1; i <= N; i++) {
            for (int k= 1; k<=N-i; k++){
                   System.out.printf(" ");
            }
            for (int j = 1; j <= i; j++){
                   System.out.printf("*");
            }
              System.out.printf("\n");
        }
        in.close();
}
}