문제 : https://www.acmicpc.net/problem/2438 



import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        
        for(int i = 1 ; i <= input ; i++) {
            for(int j = 0 ; j < i ; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    } 
    
}

+ Recent posts

"여기"를 클릭하면 광고 제거.