import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i = 1; i<=n; i++) {
for(int j = 1; j<i; j++) {
System.out.print(" ");
}
for(int h = n; h>=i; h--) {
System.out.print("*");
}
System.out.println();
}
}
}
728x90
반응형
'매일코테' 카테고리의 다른 글
백준 3단계 no.12 (0) | 2022.07.20 |
---|---|
백준 3단계 no.11 (0) | 2022.07.20 |
백준 2439번 (0) | 2022.07.20 |
백준 3단계 no.10 (0) | 2022.07.20 |
백분 3단계 no.9 (0) | 2022.07.20 |