import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
for(int i=0;i<=a;i++){
for(int j=1;j<=a-i;j++){
System.out.print("*");
}
System.out.println();
}
}
}
- 변수를 잘 생각하자.
- 예상 결과
*****
****
***
**
*