import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
for (int i = 0; i < num; i++) {
for (int j = 0; j<=i ; j++) {
System.out.print("*");
}
System.out.println();
}
}
}
'일상' 카테고리의 다른 글
10871 : X보다 작은 수 (0) | 2021.07.26 |
---|---|
2439 : 별 찍기 -2 (0) | 2021.07.26 |
11022 : A + B - 8 (0) | 2021.07.26 |
11021 : A + B - 7 (0) | 2021.07.26 |
2742 : 기찍 N (0) | 2021.07.26 |